autoresize

NSView's autoresizing behavior

Greetings all, I hope you all can shed some light on how NSView autoresizes it's views. I've set everything up in IB and my subviews resize nicely (when I resize my window around with a mouse). However, if I do [myMainView setFrame:] with my new frame rect, nothing happens. All of my sub-views are still the original size (even though t...

Auto-resize custom horizontal scrollbar/slider?

I'm working on a site that scrolls horizontally. I know very little about jQuery and prototype and I got this slider script working as the page scrollbar. When the window is resized smaller, the custom horizontal slider/scrollbar won't resize to the viewport's width. I have the page and js files here http://keanetix.co.cc/scrollpage/ T...

How to make iPhone app look right when user is on a phone call or Internet tethering?

The status bar has grown, so parts of my interface get cut off. Any pointers on how to fix this (e.g. using autoresize masks, etc.)? I use Interface Builder for the UI, so everything is .xib's. ...

Auto-sizing body background image to browser window?

i have a jquery script that allows for changing the body background i want to have the background image of the body scaled to the browser window size there is a script called http://www.buildinternet.com/project/supersized/ but i am not able to make use of the scaling from that script because it effects the class img not the background...

Automatic image resizing in a CSS flow layout to simulate a html-table layout

I have an image that, depending on the screen resolution, drops down out of sight in my CSS flow layout because I have set its width and height to static values. Is there a way in a CSS flow layout to have the image automatically resize while someone is making the browser window smaller. I have seen this done in a html-table layout and...

Setting proportional image widths for browser resize

If I have an image combined with a style: <img class="test" src="testimage.jpg" /> img.test { width: 50%;} The image resizes to 50% the width of the box containing it, as well as resizing vertically, maintaining the aspect ratio. This seems to require the enclosing DIV to be set to a particular width and height value. But if you wan...

Flex TextArea auto-resize behavior - is this possible?

For a multi-line TextArea Flex component, want to be able to keep entering text and have the TextArea auto-resize in the vertical direction so that all the entered text is shown at once. However, TextArea wants to push any components down in the layout flow. Instead, want the TextArea to extend over on top of them. Once the text entry is...

how is td auto resized in this case?

<body> <table width="100%"> <tr> <td><div>content1 goes here</div></td> <td><div>content2 goes here</div></td> <td><div>content3 goes here</div></td> </tr> </table> </body> The content(1,2,3) can include other html tags. There is no setting on the width of td,then how on earth is it autoresized? I've now somehow triggered an unexpected...

Odd resizing of controls VB .net

I have a listbox and a panel. In my forms resize event, my listbox is always form1.width * 0.5 and then the panel is also, but it doesnt work very well. I They overlap at a certain point but in theory, they never should. Is there something wrong with my logic? Thanks ...

resizing an iframe having a tab container to fit contents Problem in Chrome

Hi guys, I have a iframe in which i have a ajax control Toolkit tabcontainer control and i am using a javascript to re size the iframe to fit its contents.... the script works fine in all browsers whenever the page reloads but when i change an active tab of the tabcontainer it goes haywire in Chrome only and calculates a height which i...

Will UIView autoResizingMask handle a navigation bar which may or may not be there?

I have a UITableViewController which displays its own top navigation bar when it's presented modally, but uses the UINavigationController navigation bar when it's pushed onto the navigation stack. I currently have code which programmatically moves origin of the table view depending on whether it has the navigation bar. When it uses its...

Forcing WinForms AutoResize to happen

I have the following structure in a Windows Form: Form (AutoResize = true, AutoSizeMode = GrowAndShrink) FlowLayout (AutoResize = true, AutoSizeMode = GrowAndShrink) GroupBox GroupBox GroupBox StatusStrip My expectation is that changing the visibility of the GroupBoxes should cause the Window to snap to...

Resizing UINavigationBar on rotation

I have a subclass of UIViewController which handles a UIView. The viewcontroller is presented modally (it slides up from the bottom of the screen). At the top of the view, i have added a navigation bar. Note that this bar is not handled by a navigation controller. I want to get the navbar to shrink in height when the view rotates to lan...

Wrong size of UITableView using autoresizingMask

I have a UITableView which is not being resized properly using autoresizeMask (in iPhone 3.0). The UITableView is inside a UIViewController inside a UINavigationController inside a UITabBarController, all of which are being created programatically. The status bar is visible. The code of the UIViewController is basically: - (void)loadV...

[iPhone] Problem with autoresizing when iPhone is rotated

Hello, In my iPhone app, I have a view (let's call it RectangleView) within the content view that I'd like to scale, along with all its subviews, when the iPhone is rotated. So, when the phone is rotated from landscape to portrait mode, I'd like RectangleView (and all its subviews) to keep their original shape and position relative to ea...

Autosizing relative to content view, not superview?

Hello, In my iPhone app, I have a UIView inside the content view, and I have some controls inside the UIView. I've set the autosize properties for these controls in Interface Builder, but it seems that they're getting autosized relative to the whole content view, instead of relative to their superview. However, it specifically says in t...

How to auto-resize qt widget?

QT Version: 4.5.2 OS: ubuntu 8.04 I have a trouble with auto-resizing widget, here is an example: As the figure shows, here are two widgets, one is a "StrWidget"(the upper widget in the figure 1) which has 5 QLabels for showing strings, the other is a "CtrlWidget" which tells StrWidget what string to show. When I click "send CCC", t...

UIView Autoresizing Resources

I've been working on autoresizing a custom UIView and Apple has very little to say on this. What's more, based on SO feedback, Apple's documentation is actually wrong in some areas. Finally, even though there are six resizing components in Interface Builder and six for setAutoresizingMask: they don't seem to correlate at all. For example...

Autoresize UITextView and UIScrollView

Hello guys, I already did several searches on Stack Overflow and Google, but I couldn't find a solution to my problem. I have a Detail View for a product that includes a UIScrollView and a few subviews (UIImageView, UILabel, UITextView). You can find an example here. First I wanna autoresize the UITextView (not the text itself!) to the...

PHP upload and resize image

Hello world I am working on a script that uploads a picture using PHP and I wanna make it resize the image to width 180 before saving it. I tried using the WideImage library and ->saveFileTO(...) but when I include the WideImage.php in the page, the page goes blank !! So here is my script if you can help me and tell me how to make it sav...