Mercurial > libervia-web
comparison browser_side/panels.py @ 188:39936b83da9d
Browser Side: Web Panel widget position/size fix
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 03 Mar 2013 19:42:18 +0100 |
parents | d0503f8f15ef |
children | abebe6d55e0a |
comparison
equal
deleted
inserted
replaced
187:d0503f8f15ef | 188:39936b83da9d |
---|---|
837 """ | 837 """ |
838 @param host: SatWebFrontend instance | 838 @param host: SatWebFrontend instance |
839 """ | 839 """ |
840 LiberviaWidget.__init__(self, host) | 840 LiberviaWidget.__init__(self, host) |
841 self._vpanel = VerticalPanel() | 841 self._vpanel = VerticalPanel() |
842 self._vpanel.setSize('100%', '20') | 842 self._vpanel.setSize('100%', '100%') |
843 self._url = TextBox() | 843 self._url = TextBox() |
844 self._url.setText(url or "") | 844 self._url.setText(url or "") |
845 self._url.setWidth('100%') | 845 self._url.setWidth('100%') |
846 hpanel = HorizontalPanel() | 846 hpanel = HorizontalPanel() |
847 hpanel.add(self._url) | 847 hpanel.add(self._url) |
849 hpanel.setCellWidth(self._url, "100%") | 849 hpanel.setCellWidth(self._url, "100%") |
850 #self.setCellWidth(btn, "10%") | 850 #self.setCellWidth(btn, "10%") |
851 hpanel.add(self._url) | 851 hpanel.add(self._url) |
852 hpanel.add(btn) | 852 hpanel.add(btn) |
853 self._vpanel.add(hpanel) | 853 self._vpanel.add(hpanel) |
854 self._vpanel.setCellHeight(hpanel, '20px') | |
854 self._frame = Frame(url or "") | 855 self._frame = Frame(url or "") |
855 self._frame.setSize('100%', '100%') | 856 self._frame.setSize('100%', '100%') |
857 DOM.setStyleAttribute(self._frame.getElement(), "position", "relative") | |
856 self._vpanel.add(self._frame) | 858 self._vpanel.add(self._frame) |
857 self.setWidget(self._vpanel) | 859 self.setWidget(self._vpanel) |
858 | 860 |
859 def onUrlClick(self, sender): | 861 def onUrlClick(self, sender): |
860 self._frame.setUrl(self._url.getText()) | 862 self._frame.setUrl(self._url.getText()) |