Skip to content

Commit 6b87062

Browse files
committed
Use size instead of min_size for TextInput width
1 parent a840d9f commit 6b87062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gtk/src/toga_gtk/widgets/textinput.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def rehint(self):
114114
min_size, size = self.native.get_preferred_size()
115115

116116
self.interface.intrinsic.width = at_least(
117-
max(min_size.width, self.interface._MIN_WIDTH)
117+
max(size.width, self.interface._MIN_WIDTH)
118118
)
119119
self.interface.intrinsic.height = size.height
120120

0 commit comments

Comments
 (0)