objective c - NSPopover padding content on one side -
i have 2 nspopovers, both of set same (just linking custom nsview ib). both pop fine, 1 appears offset content 20px.
this nspopover (properly) not padding content...
but 1 adds 20px ride side.
here 2 views laid out in ib
as can see, search bar should pinned right side left, reason not. @ first thought contraints issue, after messing around them while can confirm not.
any clue whats up?
edit: decided subclass view , fill rect, got strange results! view appears offset. have no clue why is...
from here, caught eye (emphasis mine):
the principle circumstance in should not call
settranslatesautoresizingmaskintoconstraints:
when not person specifies view’s relation container. example,nstablerowview
instance placednstableview
. might allowing autoresizing mask translated constraints, or might not. private implementation detail. other views on should not callsettranslatesautoresizingmaskintoconstraints:
includenstablecellview
, subview ofnssplitview
, nstabviewitem’s view, or content view ofnspopover
,nswindow
, ornsbox
. familiar classic cocoa layout: if not callsetautoresizingmask:
on view in classic style, should not callsettranslatesautoresizingmaskintoconstraints:
under autolayout.
does apply you?
Comments
Post a Comment