# HG changeset patch
# User Olaf Wintermann <olaf.wintermann@gmail.com>
# Date 1743347187 -7200
# Node ID d8b86f66721c8cafdc9c29332e52be97e34d0f08
# Parent  96f466ceaf2397b79f19a35280210f6caeaf4560
another textview/scrollview layout fix (Cocoa)

diff -r 96f466ceaf23 -r d8b86f66721c ui/cocoa/text.m
--- a/ui/cocoa/text.m	Sun Mar 30 16:52:33 2025 +0200
+++ b/ui/cocoa/text.m	Sun Mar 30 17:06:27 2025 +0200
@@ -33,10 +33,11 @@
 
 UIWIDGET ui_textarea_create(UiObject *obj, UiTextAreaArgs args) {
     NSTextView *textview = [[NSTextView alloc] init];
-    textview.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
+    textview.autoresizingMask = NSViewWidthSizable;
+    textview.minSize = NSMakeSize(0, 0);
+    textview.maxSize = NSMakeSize(FLT_MAX, FLT_MAX);
     
     NSScrollView *scrollview = [[NSScrollView alloc] init];
-    scrollview.translatesAutoresizingMaskIntoConstraints = NO;
     scrollview.hasVerticalScroller = YES;
     scrollview.documentView = textview;