Mercurial > libervia-web
comparison browser_side/panels.py @ 97:3cbbe5c05aa5
browser side: widgets' setting: height detection fix
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 28 Jun 2011 13:37:02 +0200 |
parents | d7a4bbaddfb0 |
children | ad0696615768 |
comparison
equal
deleted
inserted
replaced
96:d7a4bbaddfb0 | 97:3cbbe5c05aa5 |
---|---|
204 width_str = self.getWidth() | 204 width_str = self.getWidth() |
205 if width_str.endswith('px'): | 205 if width_str.endswith('px'): |
206 width=int(width_str[:-2]) | 206 width=int(width_str[:-2]) |
207 else: | 207 else: |
208 width = 0 | 208 width = 0 |
209 height_str = self.getHeight() | |
210 if height_str.endswith('px'): | |
211 height=int(height_str[:-2]) | |
212 else: | |
213 height = 0 | |
209 def onWidthChange(value): | 214 def onWidthChange(value): |
210 if not value: | 215 if not value: |
211 self.setWidth('100%') | 216 self.setWidth('100%') |
212 else: | 217 else: |
213 self.setWidth('%dpx' % value) | 218 self.setWidth('%dpx' % value) |