diff options
Diffstat (limited to 'presentty/slide.py')
-rw-r--r-- | presentty/slide.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/presentty/slide.py b/presentty/slide.py index 4894f45..ba6726c 100644 --- a/presentty/slide.py +++ b/presentty/slide.py @@ -13,6 +13,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import absolute_import, division, print_function + import urwid class SlidePile(urwid.Pile): @@ -29,7 +31,7 @@ class SlidePile(urwid.Pile): class SlidePadding(urwid.Padding): def pack(self, size, focus=False): r = self._original_widget.pack(size, focus) - width = max(r[0] + self.left + self.right, self.min_width) + width = max(r[0] + self.left + self.right, self.min_width or 0) width = min(size[0], width) return (width, r[1]) |