ios - Google Maps Info window's resizing based on the internal content -


i'm creating custom info window using method - (uiview *)mapview:(gmsmapview *)mapview markerinfowindow:(gmsmarker *)marker based on uistoryboard using autolayout. expect of internal views resized due actual text information received , final size of info window different view of ib.

actually, result infowindow view tries full screen sized, , nothing helps fix this. playing autoresizingmask doesn't change anything, same result setting hugging priority. way set fixed size constraint, i've done width. height need dynamically calculated size based on real size of internal content.

update: added screenshots storyboard

enter image description here

enter image description here

update 2: sample test 2 scroll views, overridden method intrinsiccontentsize:

- (cgsize)intrinsiccontentsize {     [self layoutifneeded];     return self.contentsize; } 

internal uiscrollview attached via 4 sides base scrollview internal uiscrollview attached via 4 sides base scrollview

internal uiscrollview attached top , left internal uiscrollview attached top , left only sample test view hierarchy sample test view hierarchy

as can see full screen root uiscrollview (blue border) still exists. , internal uiscrollview (green color) has no influence on it. it's still has full screen size

unfortunately way found use explicit frame, needs calculated manually , do not use autolayout @ google maps infowindow.

i made couple of tests verify how same view displayed subview of uiwindow, , found behavior different.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -