File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,14 @@ class UIViewAutoSizeUIViewAutoSize extends UIView {
33
33
if ( ! view ) {
34
34
return CGSizeZero ;
35
35
}
36
+ // if message is set on the dialog
37
+ // this is called with an infinite boundsSize.width which would
38
+ // make the view size itself to as big as possible
39
+ // which we never want
40
+ // instead we try and return our previously measured size
41
+ if ( boundsSize . width >= Number . MAX_SAFE_INTEGER ) {
42
+ return this . bounds . size ;
43
+ }
36
44
const actualWidth = Math . min ( boundsSize . width , Screen . mainScreen . widthPixels ) ;
37
45
const widthSpec = Utils . layout . makeMeasureSpec ( Utils . layout . toDevicePixels ( actualWidth ) , Utils . layout . EXACTLY ) ;
38
46
const heighthSpec = Utils . layout . makeMeasureSpec ( Utils . layout . toDevicePixels ( boundsSize . height ) , Utils . layout . UNSPECIFIED ) ;
You can’t perform that action at this time.
0 commit comments