resize

Automatically resizing the top frame?

Suppose I have two frames. I want to set the size of the top frame so it shows all the necessary content, but no more. For example, could I put an "hr" tag or a wide image transparent image at the bottom of the top frame and have the top frame resize automatically based on the location of this element so that this element marks the ver...

jQuery resize losing border

Hi everyone! I'm having a few issues with the jQuery UI Resize loosing the border on the textarea I'm resizing (see images). Can you help? Borders showing as intended: Right border hidden: Firebug screenshot: (http://i.imgur.com/TyR43.png) ...

Fast but anti-aliased resizing in Java

Hi! I need an algorithm for resizing images in J2ME. The faster and lighter, the better. But nearest-neighbour is not an option as I need anti-aliasing. Something like Hermite interpolation sounds OK. I am not an expert there, so no need to laugh. Note: I won't need colour unpacking as the data will be grayscale. Thanks a lot! ...

css3 animation/transition/transform: How to make image grow?

I want to make my image grow to 1500px in height (and hopefully the width would just automatically re-size itself, if not, I could easily set it too) I was using jquery .animate() but its just too choppy for my liking... I know I can use the : -webkit-transform: scale(2); But I want it to be set to a specific size.. not just double o...

UIWebView rotation on iPad

On the iPad, I present a view in the "detail" side of a split view controller that is basically just a UIWebView, which loads an HTML file in the application bundle. The application supports rotation and hides/shows the "master" side of the split as appropriate. When the UIWebView is initially loaded in landscape mode, its content seems...

As3 movie clip resize.

Ok so I have 3 movie clips that are setup in rows. I need these movie clips to be positioned in a certain position and each of the elements in side of them in another position. Now in order to do that I have to set the width so that I can put the rows where I need them however after setting the width and then adding a child to it seems t...

Is it possible to auto-resize a frame according to a grid in wxPython?

First, is it possible to do a static auto-resize of the frame according to the grid? As in, when the script is run the frame is resized according to the grid, but if the grid is resized later on the frame stays the same size. Second, is it possible to make the frame dynamically resize according to the grid? As in, the frame will resize ...

The javascript "resizeTo" function not working in Chrome and Opera

Hi everybody, The resizeTo (that allows setting a new height/width value) function works great on Firefox and Internet Explorer and doesn't work at all on Chrome and Opera. Is there another function that does the same and works on all the browsers? Thank you, Regards ...

jQuery Resize plugin

Hey there, folks I spent hours of searching for this but without any success. I need a plugin (jQuery) that is similar to jQueryUI's .resizable() applet. I need to resize a div by a grip in left bottom and I cant use jQuery UI. Any help will be apriciated. ...

resize a Mac Os X window to just keep the title bar

Hello, I am trying to resize programmatically a window in order to keep just its titlebar. WindowShadeX : http://unsanity.com/haxies/wsx is doing this and I am wondering what can be the solution they are using. Thanks in advance for your help, Regards, ...

resize UITableView cell based on the given text

I have a UITableView A, in which there is a cell (in a standalone section) that, once selected, another UITableView B will be brought up where user can input/edit text content. After done with UITableView B, the text content will be used to update the cell's content in UITableView A. The cell section in UITableView A was coded to allow ...

UITextField resize width like safari on iPhone

How do I resize the UITextField when clicked with, like the search bar in mobile Safari? ...

How to make the text "test" larger or smaller as the div's resize using jquery ui .

this is my code : <!DOCTYPE html> <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"&gt;&lt;/script&gt; <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jq...

Resizing iFrame height from iFrame content?

Hey guys, weird thing right now. i have an iFrame on one of my sites which grabs it's src from one of my other sites. So both belong to me and I can access both. However sameOriginPolicy is always in the way :) i want to find a solution to autoResize the iFrame depending on it's content. i found a nice autoHeight jQuery plugin that woul...

Maths to resize an image into bounds of max height and max width

Given an image: maxWidth = 400; maxHeight = 200; width = photo.Width; height = photo.Height; How would I go about scaling the image if either dimension exceeds the maximum properties? Here are some test cases: 300x300 : Too tall, but width ok. 500x200 : Too wide, but height ok. 650x300 : Too tall and too wide 300x190 : F...

CALayer autoresizing on iPhone/iPad: How?

I'm trying to create a UIView subclass ("GradientView") that will fill itself with a gradient of various colors. I've implemented it by adding a CAGradientLayer as a sub-layer of UIView's layer. It looked good, but when the screen was rotated, it didn't resize the gradient layer. Having no luck finding a BOOL property on the layer to to...

Finding and enforcing an aspect ratio.

I have a control on my form , and i want to be able to control the width, and have the height of the control change to maintain its original aspect ratio. So that brings me to the following questions: Questions: How do you determine the exact aspect ratio of a control? What do i do in the resize event to set the height to the correct ...

resize image in ruby on rails using rmagick without losing quality

I need to resize an image in rmagick from its current size to a fixed width to a width of 300 without losing image quality. Currently I am doing following for a jpg image if previewImage.columns > 300 previewImage.change_geometry!("300x") { |cols, rows, img| img.resize!(cols, rows) } end am not sure if t...

iOS - Should changing the frame of a UIImageView resize its image?

Can someone answer this definitively? It seems that sometimes changing the frame of a UIImageView resizes its image and sometimes it doesn't. I have loaded an image and created a UIImageView with it, sized about 100x100. Doing the following has absolutely no effect: myImageView.contentMode = UIViewContentModeScaleAspectFit; myImageView...

How to Resize View so That Its Subviews Get Resized Too

My window adds a subview (my root ViewController's view). Such subview is superview of several other subviews. I have just finished an app, and now I want to add an ad. Here's some code: [window addSubview:viewController.view]; viewController.view.frame=CGRectMake(0,0,320,480-48); viewController.clipToBounds=YES; Ad *ad=[Ad alloc] in...