resize

some issues with downsized images and their increased file sizes in c#

Hi , I have a class which helps me out to re-size my images to a specified image size but the problem is with the file sizes of the output images—actually it's kinda funny but here is the thing: the original image is : 800x600 24bit 96dpi file-size : 82kb the re-size image is : 466x340 24bit 96dpi file-size : 366kb what should I do?...

Specifying width and height as percentages without skewing photo proportions in HTML

I was wondering if in the width and height attributes, I could specify width and height as percentages? Well, I guess that is obvious, because when I try so, it resizes, but it appears to skew the quality of my image. Here is an example of my markup with fixed attributes: <img src="#" width="346" height="413"> Now, while trying to ...

how to scroll window onload with jquery

Hi, I have a form in the middle of a table. I would like this form to always be in the center of the window vertical and horizontally, even when the window size is smaller than the table. I am thinking on using the scrollTo function of jQuery and call it onLoad and onResize, http://demos.flesler.com/jquery/scrollTo/ but I am a begginer a...

Auto-rotation on navigationBar

Hi there, I've got a navigationBar that does not auto-resize when rotating the device anymore. So the navigationBar keeps it's portrait height of 44 pixels and does not shrink down to 32 pixels. I'm using a custom UITabBarController subclass which initializes the UINavigationControllers and adds them to it's viewControllers array. Since...

Having trouble getting contents of ListBox to resize with it

I tried the suggestion here regarding Stretching, but it didn't work for me. I have a TabItem that hosts a UserControl that is essentially just a ListBox with an ItemsPanel. The ItemsPanel forces the ListBox to display its contents horizontally. The contents of the ListBox are databound to an ObservableCollection<StackPanelContents>, ...

Text Resizing with jQuery?

I found this great solution for on-site text resizing with jQuery: http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing Works like a charm, but their are three things it's missing that I need; A.) A 'return to default' click able option. B.) Limits on resizing (i.e. only allow it to be resized up or down twice C.) Addi...

flex: trouble resize and position SWFLoader

I have a complicated problem with a couple of SWFLoaders. I have an application that loads a swf with a SWFLoader. The loaded swf loads another swf (just a compiled fla). I am adding all my resize and position logic in my loaded swf and it works good on event resize, but when I'm trying to run the same code in my swfs applicationComplet...

How can I move all the controls in a panel on form resize?

I'm playing around with a project, C# .NET 4, and I'm kind of stuck. I have with a panel that will be dynamically filled with checkboxes based on the number of items in a folder, which works fine. But when I resize the form I want the checkboxes to move in the panel, like a little grid of checkboxes that takes up what space it can. Th...

NSWindow titlebar turns white when resizeing

Hi, I'm programatically resizing my NSWindow containing an NSOpenGLView. The window resizes, the NSOpenGLView is handling the resizing fine, but the titlebar of the NSWindow turns completely white. However the buttons (minimize,...) can be clicked, also you can not see them. Resizing occurs using the following code in the windows con...

jQuery UI - Resizable - with transform-rotation

Hi there, I have an issue with jQuery UI and the resize function. When my div have a CSS rotation (-moz-transform), the resize is strange, when i drag a border it move both side and not only one. Don't know if you understand ? And idee ? I'll make an example later. Regards, Maïs ...

Fixed width div losing its background-color upon resizing the browser window.

I am creating a blog based on the 960 grid system. It has three simple divs: header 2. Content 3. Footer and each of them has a fixed width div which holds 2-3 columns of text. The content div, and the fixed width div inside it have the same background color, but when i reduce the size of the browser window, for some reason it ignores...

How to create fixed size swf in pure AS3 only

Hi guys,,, I was wondering if there are anyways to get the fixed size swf file when I build my AS3 only project in Flex environment. I can't use scaleMode="noScale" since my swf is very small. I don't want it expand it to full browser winder either. Are there anyways to do it? Thanks for the help! ...

WinForms controls are flickering when resizing on Windows7 x64

This very strange. When I resize a WinForms dialog the controls are flickering very bad, some of them are disappearing. It happens only when using the application under Windows 7 64. ...

Auto resize height div according to dynamic child div

Hello All, Begginer in javascript, I'm trying to make a system tabs. All work fine, but when i want a tab with moveable content (in this exemple, i tried with a accordion), the height container div don't resize to child content. $(document).ready(function() { //Tabs init $('#mask').css({'height':$('#panel-1').height()}); $('a[rel=pan...

Resizing an IE's window given dimensions of renderable space

Hello! I'm looking to write a function which resizes an IE {7,8,9} window using javascript. The input to the function is the desired size of the rendered webpage (so IE's window without status bar, borders, scrollbars, etc. Calling foo(120, 100) should result in a rendered web page which is exactly 120px by 100px. This was my first e...

how to resizing datepicker?

dear all.. i have jQuery Datepicker inside my form. my problem is after i have clicked inside textfield, the datepicker shows too big. how to resize the datepicker? ...

Get <div> to resize when users resizes browser

I want a div's width and height to change with the browser as the browser's width and height are changed when a user changes their browses dimensions. Code added based on the answers suggestion <!doctype html> <html> <head> <link rel="shortcut icon" href="/favicon.ico"> <meta charset='UTF-8'> <%= stylesheet_link_tag 'a...

Jquery, CSS: How do I resize a set of fixed elements to dynamically fill the remaining height of the browser window?

Basically, I have a set of fixed elements that start 180px from the top of the page. They're all stacked, and I use another set of functions to hide/unhide them accordingly to emulate tabs. They all belong to the same class 'editor_view'. I want each of them to terminate at the bottom of the page. What would the code for this look li...

Action script 3 - I need to know if a child object has changed it's size DYNAMICALLY ! help ?

Hi, I'm writing a sort of "dynamic gallery" in flash. The problem is that a child of the gallery can be resized in runtime, and then I have to rearrange the gallery. Now, of course, I can't overload the gallery items, since it's a display object which is unpredictable. and even if I could force overloading on the items, how will I be...

Resizing JButtons and other components according to text

How do you resize a JButton at runtime so it adapts to the text given by setSize? I've done some searching and this is the code I've come up with so far. Could this be turned into a utility method? FontMetrics metrics = getFontMetrics( font ); int width = metrics.stringWidth( string ); P.S: No layout manager is being used. ...