bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #27930] Offsetting a subview breaks when the parent view is resized


From: Derek Fawcus
Subject: [bug #27930] Offsetting a subview breaks when the parent view is resized
Date: Wed, 04 Nov 2009 02:22:12 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102808 Mandriva/1.9.0.15-0.1mdv2009.1 (2009.1) Firefox/3.0.15

Follow-up Comment #1, bug #27930 (project gnustep):

and I've found a workaround...

My code replaces the window content view with the new main view,
if instead the main view is itself set as a subview of the pre-existing
content view,  things work as expected.

i.e. in the sample code,  in do_window(),  replace
        [window setContentView: mainView];
with
        [[window contentView] addSubview:mainView];

Which may give a hint as to what is happening.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27930>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]