moving stack
Robert Brenstein
rjb at robelko.com
Sun Dec 12 17:26:06 EST 2004
>Trouble I'm running into is that it remembers the wrong coordinates.
>When I save the coordinates for future reference, somehow Metacard
>is calculating the titlebar into it. When I save the loc of the
>stack, it saves the loc, but when I close/open the stack and reset
>it to the saved loc, it is opening at a location slightly higher
>than the location that was supposed to be saved. Just enough to
>assume the titlebar is the culprit.
>
>I can't find anything anywhere about the height of the titlebar to
>take it into account and open to the new location accordingly.
>
>set the loc of stack xyz to the savedLoc - the titlebar height
>
>That's what would fix it, but that doesn't exist.
>
>I did however discover that one of the cards seems to have gotten
>larger than the stack size. Don't know how and the card sizes never
>change. It opens at the proper stack size but when I get the rect
>of the card versus the rect of the stack, there is a HUGE
>difference. (More than the differential of the savedLocation issue.)
>
>Shari
Would you happen to have a menubar in that stack? May be that is the
cause of the shift. I can imagine that the loc returns the loc of the
visible portion of the stack whereas you set it upon reopening before
the window was reduced to hide the menubar group.
Robert Brenstein
More information about the metacard
mailing list