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...

no padding

but 1 adds 20px ride side.

padding

here 2 views laid out in ib

enter image description here

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...

enter image description here enter image description here

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 placed nstableview. might allowing autoresizing mask translated constraints, or might not. private implementation detail. other views on should not call settranslatesautoresizingmaskintoconstraints: include nstablecellview, subview of nssplitview, nstabviewitem’s view, or content view of nspopover, nswindow, or nsbox. familiar classic cocoa layout: if not call setautoresizingmask: on view in classic style, should not call settranslatesautoresizingmaskintoconstraints: under autolayout.

does apply you?


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -