File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ class TogaContainer(Gtk.Box):
110
110
def __init__ (self ):
111
111
super ().__init__ ()
112
112
113
- # Because we don’ t have access to the existing layout manager, we must
113
+ # Because we don' t have access to the existing layout manager, we must
114
114
# create our custom layout manager class.
115
115
layout_manager = TogaContainerLayoutManager ()
116
116
self .set_layout_manager (layout_manager )
@@ -150,9 +150,11 @@ def width(self):
150
150
"""
151
151
if self ._content is None :
152
152
return 0
153
- return self . get_width ()
153
+
154
154
if self ._dirty_widgets and self .needs_redraw :
155
155
self .recompute ()
156
+ width = self .get_width ()
157
+ return width
156
158
157
159
@property
158
160
def height (self ):
@@ -162,9 +164,11 @@ def height(self):
162
164
"""
163
165
if self ._content is None :
164
166
return 0
165
- return self . get_height ()
167
+
166
168
if self ._dirty_widgets and self .needs_redraw :
167
169
self .recompute ()
170
+ height = self .get_height ()
171
+ return height
168
172
169
173
@property
170
174
def content (self ):
You can’t perform that action at this time.
0 commit comments