resizing

JScrollpane scrollbar resizing problem

Hello everyone, I have the following problem: I have JScrollPane containing an image. The scrollpane is inside a JPanel together with other components in order to be able to layout the whole thing with a BorderLayout (the scrollpane is the CENTER and I have something in the SOUTH). This JPanel is in a JSplitPane. The JSplitPane is fina...

html padding does not work in Internet Explore when resizing the font

This is an internet explorer only bug. I'm currently using IE7. I'm having the same problem that appears on YouTube page. There is "Home" "Video" "Channels" under the search text field at the top of youtube.com page. The padding that exists between Home and Videos gets ignored when we increase or decrease the font. The page I'm deve...

Loading Java applet with height set to 100%

Hello, I have an webpage that displays a java applet. The applet is resized if the window is resized using JavaScript which works fine. The width and height of the applet is set to 100%. When the applet is loading, an image is displayed image = "preloader.gif" Using IE 6/7 everything works fine. But in Firefox, the applet has a heig...

Wpf Window resizes when computer is locked.

I have a Window set to the height and width of my monitors: var r = System.Drawing.Rectangle.Union( System.Windows.Forms.Screen.AllScreens[0].Bounds, System.Windows.Forms.Screen.AllScreens[1].Bounds ); Height = r.Height; Width = r.Width; This is all fine until I Lock my computer (WIN+L), when I come back the window has resized itself ...

Prevent window redraw when resizing c# windows forms

What windows message or event can i listen to in order to stop a window from being redrawing every pixel of it's resize? That is, when a user clicks on the edge of the window and starts to re-size it, i don't want to re-draw the entire contents until he lets go. This is because for some reason it's currently choppy at resizing probably...

How to make parts of a div element resize automatically?

I'm trying to create a small html fragment (a div element) consisted of three parts: a label, textbox, and a button. Within that div element the label would be on the left (autosized), the button would be on the right (again, autosized) and the textbox should take up all remaining space within the parent div element. This is what I've...

How to show only border of winforms window when resizing?

I would like to disable displaying of the content of the window when resizing, is it possible? The problem is that when I'm resizing my window the controls redraw on correct positions but it doesn't look good because it's not done fluently. EDIT: I would like a code that would manage the following scenario: I click on the corner of ...

Problem with table resizing after automatically removing from jquery one column (this only happens in Internet explorer)

Hi. I have a table with some columns. Something like this: <>div id="outer"> <table> <tr> <td>remove button</td> <td>remove button</td> </tr> <tr> ... </tr> </table> <>/div>' The table has the size of the div#outer When I click remove button I remove with jquery the entire col...

Disable form resizing in delphi

Is there any way to stop the user resizing the form? Currently I am using: When form size changed.... MainForm.Height := 761; MainForm.Width := 777; But this looks horrible as it flickers as the user tries to change the form size. ...

Why SetMinimumSize sets the minimal heights but not width?

Here is my code: import javax.swing.*; import java.awt.*; public class PanelModel { public static void main(String[] args) { JFrame frame = new JFrame("Colored Trails"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BoxLayout(mainPanel...

Winform custom control in WPF

Hi, I'm inserting a custom winform control in a WPF/ XAML window, however i'm realising that the sizing seems to be very different, what i designed in winform to be 730pixels wide for instance, when placed via a WindowsFormsHost, in a container 730pixels (or at least i think they're pixels..) wide, the control looks much larger and doesn...

Scaling VideoView on Android

I am creating a video player on android and am having trouble resizing the video. I am trying to make it so that when i click the video it goes to full screen covering everything and if i click again it goes back to the smaller size with other buttons on the screen. I have seen another similar problem and an answer from haseman (http://s...

Setting the size of a silverlight window at runtime automatically?

I need to be able to change the size of my Silverlight object at run time because I have content that changes in size dramatically between pages, and I'd rather not show a Silverlight scroll bar inside the browser scroll bar. I was able to do the following to get it to work: In the aspx page hosting the silverlight control: - Set yo...

Android -- How to scale/resize text to fit a TextView?

Hello all, I'm trying to create a method for resizing multi-line text in a TextView such that it fits within the bounds (both the X and Y dimensions) of the TextView. At present, I have something, but all it does is resize the text such that just the first letter/character of the text fills the dimensions of the TextView (i.e. only the ...

Resizing the window in web application JSF richfaces

I want to resize the window as and when user adjust the browser. I am catching the resize event and changing the height and width. But it's not working for all. Please give some idea. I am doing in JSF richfaces. ...

Iphone resizing images

Hi all, As far as I have read, scaling a big image to draw it on the iPhone is very slow [1]. I really need to do it fast and I wonder why zoom goes so fast on the iPhone while code scaling is so slow. Any idea? By the way, any fast way to do scaling? [1] For instance: http://stackoverflow.com/questions/1282830/uiimagepickercontroller-...

Relative Resizing of Forms in .NET

What is the magic that makes components cling to the edges of a form? I had thought that one must use the resize event of the form and them force each element in the form to resize. But then I saw some sample code which, even when I am editing the form, the elements seem to adhere to a percentage of the space they take up in the form r...

Resizing image with Python with locked aspect ratio

How should I resize an image with Python script so that it would automatically adjust the Height ratio to the Width used? I'm using the following code: def Do(Environment): # Resize App.Do( Environment, 'Resize', { 'AspectRatio': 1.33333, 'CurrentDimensionUnits': App.Constants.UnitsOfMeasure.Pixels, ...

Paperclip Resize to fit a rectangular box

I have a rectangular image for example 30x800 pixels How I can scale it with paperclip to preserve the aspect ratio to a 100x100 pixel image with borders filling the empty area ? an example : http://www.imagemagick.org/Usage/thumbnails/pad_extent.gif ...

Resizing Facebook Application's iFrame w/ New Javascript SDK

Hi Does anyone know what's the replacement method for FB.CanvasClient.startTimerToSizeToContent() to resize iframe content in the new javascript SDK for Facebook? Or maybe if there is an alternative technique for achieving the same effect? Thanks ...