changeset 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 67365f17069e
files browser_side/panels.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/browser_side/panels.py	Sun Mar 03 17:37:43 2013 +0100
+++ b/browser_side/panels.py	Sun Mar 03 19:42:18 2013 +0100
@@ -839,7 +839,7 @@
         """
         LiberviaWidget.__init__(self, host)
         self._vpanel = VerticalPanel()
-        self._vpanel.setSize('100%', '20')
+        self._vpanel.setSize('100%', '100%')
         self._url = TextBox()
         self._url.setText(url or "")
         self._url.setWidth('100%')
@@ -851,8 +851,10 @@
         hpanel.add(self._url)
         hpanel.add(btn)
         self._vpanel.add(hpanel)
+        self._vpanel.setCellHeight(hpanel, '20px')
         self._frame = Frame(url or "")
         self._frame.setSize('100%', '100%')
+        DOM.setStyleAttribute(self._frame.getElement(), "position", "relative")
         self._vpanel.add(self._frame)
         self.setWidget(self._vpanel)