resize

Resize issue to fit dynamically with any browser size

I'm trying to make full flash site dynamically resize in any browser size. If the browser gets smaller than the site MC should constrain to fit in the browser. (EX: 1440x900) What I have right now works like 98% of the time, but when I switch to a bigger screen size, it screws up and makes the site tiny from left to right (menu, logo, ...

Use CSS (and maybe JavaScript) to make an element be square (or maintain a specific aspect ratio)

I have a div that I want to have the following characteristics: Width = 50% of its parent element Height equal to whatever it needs to be in order to maintain a certain aspect ratio. I need to use percentages because the object will resize left-right when the browser is resized. I want the object to be resized top-bottom to ensure th...

Resizing Arrays - Difference between two execution blocks?

I have a function which grows an array when trying to add an element if it is full. Which of the execution blocks is better or faster? I think my second block (commented out) may be wrong, because after doubling my array I then go back and point to the original. When creating arrays does the compiler look for a contiguous block in memo...

MovieClip.onResize event? how?

I have a an swf, called 'controls' that I created with flash cs4. I upload the controls.swf to my web server. I create an application in flex and it loads the external swf controls into itself. So far I can manipulate the controls.swf via my flex app. I created a class in my external swf, but I need to add some onResize event/check to m...

how to detect iframe resize?

i have a page with a function to resize the height of iframe in this page as a height of content of iframe but whene the iframe has a toggle action the height change and the function dosn't detect the resize of the iframe. is there a way to detect if content of my iframe has change... ...

I need to resize images upon upload in Java / Struts. How to do this?

The title says it all. We're building an application that handles image uploads. I want users to be able to upload an image at a given size, say 128x128, and then have the server automatically generate other sizes based on that, such as 64x64, 57x57, and 25x25. Are there libraries that can help me with this? Edit: I should note that th...

Dynamically resize Inputs

I've got this piece of code for a jQTouch/jQuery page that dynamically resizes inputs to the window's innerWidth - the associated label width - 50px. <html> <head> <title>resizeInputs</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css" media="screen">@import "jqtouch/jqtouch.min.css";</st...

how can i resize font of div by resizing the div using jQuery?

hello every one, can anyone please help me, how to resize font size by resize event of div using jquery ui plugin? html : <div>my testing data</div> script : $('div').resize(); //this function is called from resize plugin of ui jquery i want to increase font size by resizing the div. ...

Resize a set of HTML element.

Hi, I have HTML code similar to <div id="resizeThis"> <div style="background: url(...)">...text...images...</div> ... </div> I want to resize the div with all its contents to arbitrary size. For example, I could use JavaScript to get the div width and then resize all elements accordingly, but what's the simplest way to do this? I ca...

WPF/XAML: How do I size a window with no border?

I am using a window with no border and drawing the Chrome myself. I want to resize the window in a typical manner and have defined a 3x3 grid with the center being the content and the outer cells constituting the respective areas requiring different treatment (TopLeft/TopMiddle/TopRight... etc.) such as cursors. Maximize, Minimize, Mov...

Faking body.scrollHeight

I have a JavaScript application that is being loaded in an iframe (via a Liferay portlet). The actual HTML is just an empty tag and the JS is loaded when the document is loaded. When Liferay loads the page in the iframe, it resizes the frame based on the body.scrollHeight property which ends up being 0 since there is no real content i...

Flex - Problem with ResizeEvent.RESIZE

Hi Guys, I'm having a little problem with my resize event... I created a component myself, and this component, at each resize event, runs a complex method. Here is the problem: When I maximize or restore my window, this event is called several times in a real short period of time, not letting enough time to my method to run completely be...

How to check if the resize is still in progress with OnResize event?

I need to redraw a control after it was resized and not while it is being resized because it takes a lot of time to redraw a control and it wastes a lot of resources. My control inherits Control class and I'm overriding the OnResize event. PS: OnSizeChanged is absolutely the same ...

ImageMagick - Resize image to square.

Hey S.O. People I have just started doing some ImageMagick work. I am currently trying to convert an image from a file size that is almost square (1411 x 1486) or similar sizes to a square shape, like 1024x1024 unfortunately the resize function doesn't seem to do a resize of the canvas so i keep getting number like 1024x982. I am wonder...

Vertically (only) resizable windows form in C#

Hi, I have a situation where it would be beneficial to me to allow my windows form to be resized by the user, but only vertically. After some searching, it seems like there isn't much on this particular subject. Is it possible? Thanks, -Ben ...

Resizing Images in VB.NET

I'd like to make a simple VB utility to resize images using vb.net. I am having trouble figuring out what vb class to use to actually manipulate the images. The Image class and the Bitmap class don't work. Any ideas, hints, tips, tutorial links are greatly appreciated. Thanks. ...

Resize and Save an image in PHP4

I have been working on a script that uploads an image to a server and add a reference to that Image in a database. The server runs a PHP4 version on apache ( and there is no chance to upgrade ) So I wanna modify the following upload script to resize the image automatically <?php include_once('CheckLogin.php');...

How do I force windows NOT to redraw anything in my dialog when the user is resizing my dialog?

When the user grabs a corner of a resizable window, and then moves it, windows first moves the contents of the window around, then issues a WM_SIZE to the window being resized. Thus, in a dialog where I want to control the movement of various child controls, and I want to eliminate flickering, the user first sees what windows OS thinks ...

Problem - Container changing size automatically in Java

I've found that my container is actually changing it's size a short while after being constructed When it's constructed, I set my components to be at the place I want (like 30px away from the right edge) but later after a short while, I find that it turns from 1008x730 to 1018x740... (My JFrame is 1024x768) Does anyone know why this h...

Is it safe to move a MySQL instance by copying the log file onto a snapshot?

My MySQL database is outgrowing the drive that it is one. I'm on EC2 so I can create snapshots easily. Therefore I propose the following process: prune the log files snapshot restore to a bigger volume at a new mount point stop the server copy the log files swap the drive mount points restart the server -- it should read from the binar...