resize

WPF: Panel with percentage coordinates

Hi, I would like use a panel whose children have coordinates specified as percentage of total panel's width/height. Moreover, I should be able to animate the coordinate property, for example to make a button move from 10% to 50% panel's width. I've made 2 attempts: Use a Grid and specify size as stars - this was not enough, because A...

how to stop NSScrollView from scrolling on resize?

I'm writing a PDFViewer for a 3rd party PDF library. I have a subclass of NSScrollView and a subclass of NSView. The problem is the NSScrollView will scroll up and down when I resize window. here is the relevant code: whenever windows is resized, my subclass of NSScrollView receive this message: -(void)handleFrameChange:(NSNotificatio...

Resizing CATiledLayer's Using Scale Transforms vs. Bounds Manipulation

I've got my layer hosted workspace working so that using CATiledLayers for hundreds of images works nicely when the workspace is zoomed out substantially. All the images use lower resolution representations, and my application is much more responsive when panning and zooming large numbers of images. However, within my application I also...

EXT Js Panel Resize

Hi I want my ext js panel to be resizable, i.e when I put my mouse over the panel it must show me the resize controls. How do I do the same ? ...

CLI ImageMagick resize (downscale only)

I would like to resize (only if neccessary) an image to maximum resolution of 800x600. So let's say we have image of resolution 2000x1600 and it will resize to 750x600, but if I have an image of resolution 400x300 it will leave as it is. In other words I need ImageMagick to resize images without upscaling. How can I do this? convert -re...

Resize image while preserving mimetype using .Net

Hi. I am loading images from a database and want to dynamically resize them according to some input. Code is something like this: public ActionResult GetImage(string imageID, int? width, int? height, bool constrain) { ValidateImageInput(width, height, constrain); ImageWithMimeType info = LoadFromDatabase(imageID); ...

Image resize PHP

I'm still a newbie regarding image handling or file handling for that matter in PHP. Would appreciate any input regarding the following I post an image file using a simple html form and upload it via php. When i try and alter my code to accomodate larger files (i.e. resize) I get an error. Have been searching online but cant find anyth...

iPhone CAAnimation problem when moving and resizing

Hi all, I'm using the old way to do animations for a simple animation, see below the code: - (IBAction)footerButtonTapped:(id)sender { if (footerActivated) { // Collapse the footer and resize the map. [UIView beginAnimations:@"collapseFooter" context:nil]; [UIView setAnimationDelegate:self]; [UIView setAnimationDuration:...

Painted content invisible while resizing in Java

Please note I haven't tested this on a Windows-machine only on a Mac-machine. I'm not so sure whether this also occurs on a Windows-machine... When I resize my Java-application the content is invisible. I already found a way to fix it after resizing it, but not while the user is resizing the window. I'm not using Swing or something bec...

Jquery Image resizing and centering to window not working in Safari

UPDATE: So due to this page: yensdesign.com/2008/09/how-to-create-a-stunning-and-smooth-popup-using-jquery/, I realized that finding the window dimensions is not safari's problem. Instead it's finding the image .width() and .height(). I tried some of the ideas on this page: http://36flavours.com/2010/01/jquery-document-ready-bug-in-sa...

How can i stop reloading in firefox when div size adjust dynamic?

Hi all, When i adjust the div width and height dynamically. the flash content in the div is reloading. How can i stop reloading in firefox when the div width and height change dynamically. Thanks in advance. ...

Scrollable resizable table with fixed header

I am looking for a HTML table where the header is fixed. I've found some solutions on the net and on Stackoverflow but none of seems to fit my needs. What I want is something like this: http://www.imaputz.com/cssStuff/bigFourVersion.html but when you resize the browser window the table should show a horizontal scrollbar. In the example...

resizing the background color of a form

Hi I have a question: if you try my code below you can see that the background color is light blue and it occupies the whole page of a site, I want to resize it how can you do that? I mean that the color will fit to the same size where the fill up boxes are, do i need to add this code: width="60%" can you please tell me where can I add...

What's preventing me from resizing (downsizing) my windows form object?

I've got a windows form object that contains 3 objects, a treeview, a richtextbox, and a tabcontrol. They are not docked into the windows form, but they are anchored (top+left). I've written the code to resize them when a form-resize event handler gets called, but it only seems to be working for an increase of form size, that is to say...

iPhone: Resizing UIImageView doesn't resize the 'touch area'

I have a UIImageView. In IB I attached a 'Touch Up' event on this UIImageView to call an IBAction in my code. This all works fine. In some cases I need to resize this UIImageView in my code. I do this by settings it's 'frame' property. The resizing works fine. The problem is that the 'touch area' stayed the original size. What I m...

Creating animation when screen diomension can change- Flex 4

I am trying to create animation which is based on user input on speed and distance... also it needs to work consistently on different screens and resolution what functions do i use to get the pixel size of the container where the animation is playing- to make the calculations? ...

iPhone resizing UIView on rotation problem.

Hi there, I setup in IB in portrait mode my main view (for iPad). I have a toolbar, a map view (x=0, y=44, w=768, h=774) and a footer view (x=0, y=818, w=768, h=186). When I rotate the iPad, I want the map to stay on the left side and be resized vertically to fit the view (x=0, y=44, w=756, h=704) and put the footer view on the right s...

Flex 4, SWFLoader border resize issue

Hi, Following is the issue i am facing. I have a MainPage, on initialize I am calling a method which would create a SWFLoader object (aka LoginPage) and loads it in the MainPage. When we run the MainPage in 800x500 window, the LoginPage loads in that window size, however when we maximize the window the content of the LoginPage gets re...

The contents of my JComponent only refresh after a manual resize

I am trying to figure out why my JComponent refreshes when I manually drag my window, but it doesn't refresh when I call repaint or revalidate. The data is ready to be displayed, but it just won't show until I manually resize. Can anybody give some suggestions about what I can do or does this sound like it isn't a Swing problem since I t...

Handling user driven resizing, position changes in Java Swing

Hello, I'm currently building a Java Swing GUI and I was wondering how user (mouse, say) driven resizing is handled. My problem is that when I try and resize my main window, or when some other window opens over my application, then my application's window gets distorted - all it's parts don't change well in response to the resizing o...