PeerComponent and screen rotation

29 views
Skip to first unread message

fab...@tbxnet.com

unread,
Sep 19, 2013, 12:25:08 PM9/19/13
to codenameone...@googlegroups.com
Hi,

I implemented a native interface with a method that returns a PeerComponent.
This component added and displayed successfully in the center of a BorderLayout.

When I rotate the screen, it is not resized as expected.

I am working on an IOS implementation. The component is a simple UIView* that contains another view.
So I tried to add an observer on the bounds of the UIView* like this : 

  [myView addObserver:self forKeyPath:@"bounds" options:0 context:nil];

and implemented - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context.

But the method never get called.

Thanks 
Fabien


Shai Almog

unread,
Sep 20, 2013, 12:42:40 AM9/20/13
to codenameone...@googlegroups.com, fab...@tbxnet.com
Hi,
is this a problem with a view within a view?
So the internal view doesn't get resized?
Why do you need that nesting? If you just placed the view directly would that work?
Reply all
Reply to author
Forward
0 new messages