Mercurial > libervia-web
changeset 649:ccf95ec87005 frontends_multi_profiles
browser_side: fixes issue when placing a LiberviaWidget and some cells of the WidgetsPanel are empty
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 27 Feb 2015 00:55:07 +0100 |
parents | 6d3142b782c3 |
children | 7e3cdc39c3e7 |
files | src/browser/sat_browser/libervia_widget.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/browser/sat_browser/libervia_widget.py Thu Feb 26 18:10:54 2015 +0100 +++ b/src/browser/sat_browser/libervia_widget.py Fri Feb 27 00:55:07 2015 +0100 @@ -671,7 +671,7 @@ for row_idx in xrange(self.flextable.getRowCount()): for col_idx in xrange(self.flextable.getCellCount(row_idx)): _widget = self.flextable.getWidget(row_idx, col_idx) - if not isinstance(_widget, BorderWidget): + if _widget and not isinstance(_widget, BorderWidget): td_elt = _widget.getElement().parentNode DOM.setStyleAttribute(td_elt, "width", "%.2f%%" % width)