layout

Adobe Flex/AIR: Scrolling a sub-component, not the whole window

I'm developing an application with Adobe Flex and AIR, and I've been banging my head against the wall trying to figure out how to solve a scrolling issue. The basic structure of my main application window (simplified greatly) is this: <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxm...

Page Layout Issues

Please let me know why there is lot of white space below the page content and also why horizontal scroll bar is displayed. Attaching link to zip folder below. Unzip and open index.html. link text ...

What are the parameters for a GridLayout?

private static final GridLayout layout = new GridLayout( 3, 1, 1, 0 ); in this line of code what do the numbers represent and how do you use them to arrange the checkboxes and buttons in the window? ...

HTML Table issue

I have a HTML table issue that I'd like to understand better. Let's assume that I have a 3 row HTML <table> <tr> <td style="text-align:right;">A1</td> <td>A2</td> </tr> <tr> <td style="text-align:right;">B1</td> <td>B2</td> </tr> <tr> <td colspan="2">A very loooooooong string here</td> </tr> </table> With a very long ...

CSS: two columns

I can't figure out how to achieve the following layout with CSS (probably because I don't actually know CSS). I have a bunch of divs like this: <div class="right"> <p>1</p> </div> <div class="left"> <p>2</p> </div> <div class="left"> <p>3</p> </div> <div class="left"> <p>4</p> </div> <div class="right"> <p>5</p> </div> <div class="r...

How to restrict client control area in a custom WinForms control

Hello, I have a custom control that uses a designer I've inherited from ParentControlDesigner to allow child controls to be dropped. I'm not using any internal designers, just straightforward single-parent stuff. This control draws a "header", so I'm trying to do three things: Have child controls dock to the bottom of the header ins...

Firefox vs IE vs Chrome vs Safari...

Currently I am designing a website and I am finding it VERY difficult to display the website perfect on ALL browsers. Is there any rules, suggestions etc to follow? Thanks ...

constrain StackPanel's width to smallest child element

How can I constrain a vertical WPF StackPanel's width to the most narrow item it contains. The StackPanel's width must not be greater than the width of any other child element. ...

Is there a Ruby/Python HTML reflow/layout library?

I'm looking for a library in Ruby or Python that would take some HTML and CSS as the input and return data that contains the positions and sizes of the elements. If it helps, I don't need the info for all the elements but just the major divs of the page. ...

How to create Facebook style fixed Status bar ?

I want to create fixed status bar in by web form to display various status/messages/notification to user , i can used fixed CSS property but i want to implement in i.e 6/7 and in Firefox. and all the browsers. ...

Paned components in GSP

So it looks like Grails' GSP does not have an include tag (correct me if I'm wrong). The closest thing to "include" is to use the render tag. There is also the include plugin. In my case, I have a classic top-left-middle-right-bottom paned page. The top header or left side would include navigation. The middle would be the content. The r...

Website Design - Changing only the body content

Currently I am designing a new website and I want to plan it properly. The main page consists of a Top Content (Header including logo etc) The body with the menu on the left and obviously the footer at the end of the page. In the menu I have 50 pages and I want to change ONLY the body content of it. It is not worth it to replicate all...

Layering images in CSS - possible to put 2 images in same element?

Supposing I'm setting a background image for a web page in CSS like this: body { font-size: 62.5%; /* Resets 1em to 10px */ font-family: Verdana, Arial, Sans-Serif; background-color: #9D5922; color: #000; margin-left: auto; margin-right: auto; margin: 0; padding: 0; background: url(images/desk.gif) repeat bottom left; } Is there a...

MaxAutoWidth in WPF

Is there a good way to limit the Auto Width of an element or Grid Column? I want to limit the Auto Width only, but allow any user changes. For example, I want to allow GridSplitter to arbitrarily resize the column, but the initial (Auto) Width should not exceed a specific value. Same for the elements -- I want to allow resizing, but lim...

How can I best lay out these components in Swing?

Hi All, What would be the best approach / LayoutManager for a JPanel that needed to display the components shown in the image? (Note that the fields should resize horizontally when the size of the window is changed, but not the labels). I'm currently trying (and struggling) to do it with a GridBagLayout. Is this the correct approach o...

How do I create a workspace window for other windows using c# in visual studio 2008?

I'd like to create a workspace with status bar and menu, and within this workspace container have smaller windows of various types. For example, if you un-maximise a worksheet in Excel but not the main window, it becomes a window in a larger workspace. I've tried searching for the result but the main problem is in knowing the right te...

What's the difference between fill_parent and wrap_content?

In Android, when layout out widgets, what's the difference between fill_parent and wrap_content? Is there any documentation where you can point to? I'm interested in understanding it very well. ...

How to use the site's masterpage from a _layout SharePoint page ?

Hi, I want to use a masterpagefile (the site's one if this makes sense) in my SharePoint 12 hive/template/layouts/TelephoneBookList/test.aspx file. However, whenever I add MasterPageFile="~/_layouts/simple.master" or something like that to my test.aspx page, I get a sharepoint error page and the following in the log file: 01/12/2009 10...

What's the best way to represent a stage script in HTML?

I have a sketch that I want to put up on my website, and I also intend to write a short play at some point which I'd also want to make freely available. I'm trying to work out the best way of representing this in HTML. I basically need two columns - one for the character speaking, and one for the text. Each speech obviously needs to lin...

Display problem with Update Panel in ASP.NET

I'll try to explain my problem the best I can, here goes: I have an update panel on an ASP.NET page and a Panel server control inside it. I have an rounded corners extender attached to the Panel server control and the extender has a solid background with a solid border. ok....I haven't found an easy easy to position the update panel i...