autoresize

Resizing Problem with a Layer-Hosting NSView

I have a layer-hosting NSView (-isFlipped = YES) with three layer-hosting subviews. The subviews are a header, a content area, and a footer. The header has a disclosure triangle which will collapse the content view and just show the header and footer stuck together. I can accomplish this pretty easily with Core Animation, but there is...

What is autoresizesForKeyboard and how does it work?

I was trying to find a way to adjust my screen when keyboard slides up so that the text field being edited (UITextView in my case) slides up and stays in focus instead of getting hidden behind the keyboard. I saw a few discussion on google groups mentioning - autoresizesForKeyboard - http://groups.google.com/group/three20/browse_thread...

Java JTextArea that auto-resizes and scrolls

I have a JTextArea in a JPanel. How can I have the JTextArea fill the whole JPanel and resize when the JPanel resizes and scroll when too much text is typed in? ...

How to resize the windows form dynamically in mobile application ?

I am developing mobile application in C#. I am using the keyboard launch functionality to launch the keyboard on mobile device when one of the textbox gets focused. I am using the following code. private void inputPanel1_EnabledChanged(object sender, EventArgs e) { InputEnabled(); } private void Inpu...

Autorotation on a gallery - willAnimateRotation... isn't invoked.

I'm using this. I've put this in where the images are added: self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; I've put these overrides in SlideShowViewController: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{ return YES; } -(void)willAnima...

issue with rotation and uilabels with size set using NSString's sizeWithFont...

I have a few UILabels in my view with their height set using sizeWithFont:. I set the autoreszingMask to flexible width and height, however on rotate the width changes (am assuming because self.view's width changes and its set with a width relative to self.view) but the height of it doesn't change to fit the content again. This results ...

Android: why is there no maxHeight for a View?

View's have a minHeight but somehow are lacking a maxHeight: http://goo.gl/qRyp What I'm trying to achieve is having some items (views) filling up a ScrollView. When there are 1..3 items I want to display them directly. Meaning the ScrollView has the height of either 1, 2 or 3 items. When there are 4 or more items I want the ScrollView...