Mercurial > libervia-web
comparison browser_side/panels.py @ 101:ad0696615768
browser side: bottomBorderWidget size fix (for webkit)
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 28 Jun 2011 14:23:12 +0200 |
parents | 3cbbe5c05aa5 |
children | 5c363b638127 |
comparison
equal
deleted
inserted
replaced
100:db435e82197d | 101:ad0696615768 |
---|---|
726 self.flextable.setSize('100%','100%') | 726 self.flextable.setSize('100%','100%') |
727 self.setWidget(self.flextable) | 727 self.setWidget(self.flextable) |
728 self.setStyleName('widgetsPanel') | 728 self.setStyleName('widgetsPanel') |
729 _bottom = BottomBorderWidget(self.host) | 729 _bottom = BottomBorderWidget(self.host) |
730 self.flextable.setWidget(0, 0, _bottom) #There will be always an Empty widget on the last row, | 730 self.flextable.setWidget(0, 0, _bottom) #There will be always an Empty widget on the last row, |
731 #dropping a widget there will add a new row | 731 #dropping a widget there will add a new row |
732 td_elt = _bottom.getElement().parentNode | |
733 DOM.setStyleAttribute(td_elt, "height", "1px") #needed so the cell adapt to the size of the border (specially in webkit) | |
732 self._max_cols = 1 #give the maximum number of columns i a raw | 734 self._max_cols = 1 #give the maximum number of columns i a raw |
733 | 735 |
734 def changeWidget(self, row, col, wid): | 736 def changeWidget(self, row, col, wid): |
735 """Change the widget in the given location, add row or columns when necessary""" | 737 """Change the widget in the given location, add row or columns when necessary""" |
736 print "changing widget:", wid, row, col | 738 print "changing widget:", wid, row, col |