bigboard r7255 - trunk/bigboard
- From: otaylor svn gnome org
- To: svn-commits-list gnome org
- Subject: bigboard r7255 - trunk/bigboard
- Date: Thu, 7 Feb 2008 22:25:39 +0000 (GMT)
Author: otaylor
Date: Thu Feb 7 22:25:39 2008
New Revision: 7255
URL: http://svn.gnome.org/viewvc/bigboard?rev=7255&view=rev
Log:
Fix bug where slideouts were not properly clamped to the screen
Modified:
trunk/bigboard/slideout.py
Modified: trunk/bigboard/slideout.py
==============================================================================
--- trunk/bigboard/slideout.py (original)
+++ trunk/bigboard/slideout.py Thu Feb 7 22:25:39 2008
@@ -41,7 +41,9 @@
def slideout_from(self, x, y):
screen_w = gtk.gdk.screen_width()
screen_h = gtk.gdk.screen_height()
- (ignorex, ignorey, w, h) = self.get_allocation()
+ # We need to call size_request() here to get how big we want to be ...
+ # self.get_allocation() won't have be updated yet before we are shown
+ (w, h) = self.size_request()
offscreen_right = x + w - screen_w
offscreen_bottom = y + h - screen_h
if offscreen_right > 0:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]