resize

How do I prevent my div layers from overlapping when the browser is resized?

I've just spent the last few weeks learning how to properly design a layout. I basically thought I had everything perfect with my website layout and was ready to go about transferring the coding to Wordpress... and then I accidentally resized my web browser and discovered that all of my div layers were overlapping each other. Here's ...

How to auto resize JFrame according to content

I have created a custom JPanel that displays images (lets call it MyPanel), I have added this to JFrame's contentPane. I want JFrame to be resized automatically to fit the MyPanel when image changes. It looks like I need to call frame.pack() to do this. Calling pack() from MyPanel increases coupling so I don't want to do that. To solv...

jquery resizable cursor is not stying with margin auto

I have a problem with the jquery resizable plugin. I have troubleshot the issue and have come up with this. If I create a div and make it resizable and make it also have an alsoResize it works fine for the most part. However, If I set the second div that is alsoResize to margin:0 auto it does not work properly. The mouse cursor is coming...

PHP Memory Limit 25MB Exhausted - File Upload/Crop/Resize

I'm using a single image upload/crop/resize script for files up to 10MB. When testing, I set php_ini memory limit to 25M and that is exhausted when uploading a file only about 1.4MB. "Allowed memory size of 26214400 bytes exhausted (tried to allocate 10368 bytes)" This seems strange to me, isn't 10368 < 26214400? (Rhetorical Questi...

Resizing an image

The code below works very well for resizing an image by aspect ratio by height and I can also create a separate function by width. But i'm not always sure if an image will need to be shrunk by height or width. For example if the space that the image needs to be resized into is 100 width and 100 height and an image is 150 by 90 then its...

Filter Hidden Files with Bash (for Batch Image Resize Script)

I'm writing a script to batch resize images. Originally I was applying an operation for file in $(ls $1), but I would like to be able to use globbing, so I'm looking at something more like for file in $(echo $1). The problem is that dotglob may or may not be enabled, so echo * could return hidden files (notably, .DS_Store), which cause c...

Tile inside Accordion does not resize correctly

In a Flex application I'm building I have an Accordion with a Tile component as shown: <mx:Accordion id="accordionShoppingBasket" width="100%" resizeToContent="true"> <mx:VBox width="100%" height="100%" > <mx:Tile id="tileOutNow" width="100%" height="100%" horizontalGap="12" verticalGap="30" paddingLeft="20" paddingRight="20" padding...

Image Resizing Performance: System.Drawing vs System.Windows.Media

I've got a situation where I need to resize a large number of images. These images are stored as .jpg files on the file system currently, but I expect to just have byte[] in memory later on in the project. The source image size is variable, but the output should be 3 different predetermined sizes. Aspect ratios should be preserved, paddi...

C# datagrid: event handler for changing column width

Hi, I'm programming a windows mobile app in C# and I need to resize the columns of a datagrid when columns from another datagrid are resized. Is this possible ? Thanks. ...

How do I resize a div automatically to the size of its contents when the contents of the div have changed?

Hi all, At the moment, I have this DIV with a registration form centered over the page. The contents of the DIV come from an ascx-page. This is done nicely. Now, if the user tries to fill in a name that's not unique, an error message is added by some jQuery next to the username field. This breaks the layout of the DIV, since the content...

Modify the main screen so that all controls resize Proportionally when the form is resized

Hi All I need help in acomplishing this in wpf : "Modify the main screen so that all controls resize Proportionally when the form is resized" Thanks Marius ...

Truncating a placeholder and appending 3 dots (...)

I have a requirement to add serveral images to an asp:placeholder control on a webpage. The added images are displayed one after the other across the page. However if the browser is resized by the user and the width is less than the overall length of the added images then the placeholder should be truncated and 3 dots added to the end ...

Whats wrong with IE7 Image scaling Width to 100%? Fine in IE8

IE7 does not resize the images properly with CSS My page looks perfectly fine in FF and IE8 - exactly like it should. But for some reason on IE7 it does no properly resize the images down to 100% of the parent container, which is set at 30% of the page width. The images are just 100% width of the full image. How do I make it look like ...

Calculate the bounding box of a GDI+ drawing

I am drawing an image from MetaFile (emf) and then apply some rotation transformations to it all within the OnPaint of a UserControl. After applying those transformation how can I calculate the normal untransformed rectangular bounding box of this in screen coordinates? I need this to be able to resize the rotated image to the size of th...

How to resize linked images dynamically in PHP?

On my site I have given an option to user to choose thier profile image Type link of an image Image is a url link, and first I want it to resize to 400x300 (image's original size doesn't matter), and then display it on my web page. Something like below: <img src="http://mywebsite.com/resize.php?image=http://someotherurl.com/upload/...

WPF resizing TextBlock

I have a textblock in a grid in WPF. I want the text to dynamically size (font) when resized. At the moment textboxes, comboboxes do this, but the the textblock stays the same. Is it possible? ...

Possible/howto resize iframe on mouse focus?

I have two iframes next to each other at 50% width and am wondering if it's possible to resize one iframe to 80% when that iframe is moused over. Is it possible? If so, can someone post a small how-to on getting this to work? ...

How to automatic resize tinyMCE?

I have a TinyMCE that is set over a TextArea, and I want this editor area to ocuppy all the space of its parent div, all times. I have a JS function that get the current space and set the textarea.style.height to it, but when I enables TinyMCE it seems to stop working. Also, the textarea has width: 100%; it doesn't resize by HTML rende...

Java 2D Graphics Question

I'm attempting to make a Java Applet which will allow me to draw a graph data structure in a canvas by clicking where I want to create nodes, and clicking the nodes to connect them. The problem is I cannot get the paint() method to behave correctly. I add new nodes to the graph (and squares on the canvas) inside the mousePressed(MouseEve...

how does one calculate the minimum _client_ size of a .net windows form?

Hi everyone I am trying to programmatically position certain controls within a form, based on the difference between the forms minimum size and its client size - this unfortunately produces different results depending on what theme the user has loaded (mostly the problem seems to be due to the fact that the title bar and form border hav...