I'm trying to resize a div on pageload and window resize. The code bellow is placed before </body>, and it works fine on pageload, but does nothing on window resize. I tested the resize function with an alert, which triggers on resize, but the height remains unchanged.
<script type='text/javascript'>
$('#main-content') .css({'height...
When resizing a form with many controls, the form looks bad because of flickering. What are some tips to have a smoother form resizing?
...
I have a StackPanel with several CheckBox controls inside it. How do I prevent the StackPanel from shrinking and obscuring the CheckBox controls when the window is resized?
<StackPanel Margin="12,89,12,62" Name="stackPanel1">
<CheckBox Name="chkOption1" Width="157" IsChecked="True" Margin="6">Do this thing</CheckBox>
...
I want to achieve the same effect as Windows Media Player or Browser based Flash players which take up the ENTIRE (not even the taskbar is visible) real estate when maximised.
This works fine if the WindowState is set to Maximised and the WindowStyle is set to None in XAML so the app is started in that state. Problem is I want to start ...
I am having a page load within a content div when the document is ready. However, I also have some links that load different pages into that same content div whenever the user clicks on them. I am trying to establish the height of the content div to control something else, however once the height of the div is set on page load, I cannot ...
Hi all!
I have a mx:Grid component in my flex application. But I would like to resize it by clicking and dragging in the border. This component doesn't allow doing that. Does anybody know any custom component to do this?
I want to put a panel in each gridItem of this Grid component and resize it.
...
I'm on the google appengine, and trying to resize images. I do :
from google.appengine.api import images
image = images.resize(contents, w, h)
And for some images I get a nice transparent resize, and others I get a black background.
How can I keep the transparency for all images?
Original : http://www.stdicon.com/g-flat/application...
Hi,
I'm working on a UI for a WPF application. I have in my window Stack Panel with some Expanders inside. In each Expander are some controls, one being a List Box. What I want to do is have the List Box resize (shrink or grow) when the window is resized. At the moment, when I re-size, the expander are getting clipped off but the listbo...
I am resizing uploaded images as follows:
var bmPhoto = new Bitmap(width, height, PixelFormat.Format16bppRgb555);
using (var grPhoto = Graphics.FromImage(bmPhoto))
{
grPhoto.SmoothingMode = SmoothingMode.HighSpeed;
grPhoto.CompositingQuality = CompositingQuality.HighSpeed;
grPhoto.InterpolationMode = InterpolationMode.Low;
grPh...
How to avoid the resizing of html elements while browser tries zoom it.
...
In a Qt4 application, is it possible to tell inside a paintEvent() handler whether the repaint was triggered by a resize or not?
I have a widget which is very slow to redraw (a complicated plot), and I want to speed up resizes by just blitting a resized pixmap while the widget is being resized, and only redraw the widget when the resiz...
As you can see if you go to the link below in IE7/AOL, the layout breaks if you resize the window. However, click the products menu tab and it rights itself. I haven't a clue why or how to fix it, and it looks sloppy. On resizing the page, the logo and breadcrumb trail div stay where they ought to be, but my horizontal nav menu and ev...
I am having trouble while using the YUI panel as a dialog.
I have a dialog object created with javascript on page load:
$J = jQuery;
dialog = new YAHOO.widget.Panel("dialog", { width: "300px", fixedcenter: true, close: true, draggable: true, zindex: 4, modal: true, visible: false });
Then when I call my loadDialog() function from eve...
I have an iframe that can appear in a jQuery modal dialog, a popup window, or just as part of a page. The height of the content of this iframe can change as elements appear and disappear, and I need the containing iframe, along with the modal dialog or popup window where applicable, to change height as necessary to be 'just right' for t...
Hello
I have this crazy situation when a child I modify height over the edge of it's parent, force another child of same parent display it's inside images scaled.
If resized child don't pass the design time height of parent, no scale occur.
Thumbs are loaded at runtime and simple added to a mc that is added to brother of resized mc.
...
looking at the code below, i can show an image with a smaller size
<a href="images/image.jpg"><img src="images/image.jpg" width="300" height="214" border="0"></a>
but what if i want the href link to show the image with a smaller size as well. so lets say the original image.jpg is 1500x1200 and in the link i want to show it 800x600.
...
Hi All,
I have a web app, whose UI is written in GWT, where for various reasons I need to resize the active window when the server reports things.
To do this I use a JSNI function which uses resizeTo and everything works great.
I did a small test and tried sending a few updates from the server and got an "Access is denied" error from the...
I have N squares.
I have a Rectangular box.
I want all the squares to fit in the box.
I want the squares to be as large as possible.
How do I calculate the largest size for the squares such that they all fit in the box?
This is for thumbnails in a thumbnail gallery.
int function thumbnailSize(
iItems, // The number of items to fit...
look at this code (couldn't paste it here it doesn't fit)it represent my real app structure:
mxml source code
EDIT: the relevant part of the code:
<mx:VBox width="100%" height="100%">
<mx:HBox width="100%" horizontalScrollPolicy="off" height="100%">
<mx:VBox width="100%" verticalScrollPolicy="off" height="100%">
...
Not all pages do this, but a good example would be youtube.com. Mostly if you are resizing the window larger, opposed to smaller. Lots of content flickers horribly in this case. I've seen some posts on the net attempt to claim sorts of double buffering will stop this, but I've yet to see any example of the proper implementation. Thank yo...