layout

Web Interfaces: What is a good way to display many static fields?

My web applications have pages that display many static fields. I know that poor layout invariably leads to information overload and poor readability. My Question: Are there any best-practices or heuristics for laying out a screen that contains many static fields? Ordinarily, I would reference Bill Scott and Theresa Neil's excell...

When do I have to call the startup() method of programmatically instantiated widgets ?

I create instances of dijit.layout.ContentPane, dijit.layout.StackContainer and dijit.layout.BorderContainer from my JS code. It seems I have to call the startup() method of programatically created instances. However, I'm not sure I have to call it for every widget. For instance, when I do a 'new my.foo.widget()', the startup() is fired...

How to get a correct visible rect during a validateTree?

First to describe the problem: During a re-layout due to a change in width or height, Java's ScrollPaneLayout requests the preferredSize of it's children BEFORE setting the bounds of it's viewport. On Text-Components calling getPreferredSpan can change the layout since this getPreferredSpan calls setSize internally. The effect is, that n...

How to position the split line caused by background repeat.

I would like to have a repeat-x on my body background for a web site, but the background is 1024 wide, so on wider displays, the line where the image begins again will be positioned to the right of the body, and possibly visible. My content is in a div 800 wide centred on the body. I would like the 'split' like from the repeating backg...

JQuery, hide not working in Firefox

Hello, I am currently working on building a very simple site for an open source research project for my University. I am using JQuery to animate the sub-navigation of the site. However, my code only seems to work in IE and not Firefox or Chrome. I'm not sure if it is a compatibility issue, or if it is my fault. I looked up examples on ...

Taming Scrollbars in complex layout in Flex

Are there any general tips on managing scrollbars and maintaing a complex liquid layout in flex? Here is the scenario: The application container is full browser screen with a docked application bar at the top. Inside the app is a general container called "appbox" which contains a viewstack of subcomponents. The subcomponents themselv...

Precise OpacityMask

Suppose I need to set an opacity mask on a WPF control that highlights a portion of it in precise position (suppose a 50x50 square at (50;50) position). To do that I create a DrawingGroup containing 2 GeometryDrawing objects: 1 semi-transparent rectangle for the whole actual size of the control and 1 opaque rectangle for highlighted area...

Padding on StackPanel?

Hello folks! I am trying to set padding of a StackPanel but there ain't such property. I tried StackPanel.Border, but there is no such property either. Any ideas? ...

Blackberry setting the position of a RichtextField in FullScreen

I am writing an application in BlackBerry, where I want to do some custom painting at the top portion of the screen in the paint method of FullScreen and at the same time, I want a RichtextField positioned at the lower portion of the screen. I tried using setPosition methods in the Field class, but to no avail. So how do I set the positi...

Css fluid layout

Hi, Im trying to replicate this layout with html/css: http://reformrevolution.com/ I think im getting close to what I need, but I cant seem able to get rid of the vertical space between divs, wich should be equal to the horizontal gap, and I believe the divs are not "going down" in the right order. Here is the code: <body> <div cla...

Fluid grid layout jQuery

Im using http://phase-change.org/jquery.gridlayout to achieve the fluid layout of several divs in my layout. I need to keep a div on the right which contains my main menu the rest its just the content divs. I cant figure out how to maintain the menu on the right without floating it or making the grid elements respected the menu and rea...

LaTeX: Avoid new paragraph?

I use the \todo command from the \todonotes package. I'd like to layout my source to put \todos separately from the previous paragraph: Some text. \todo{make note} But I don't want \todo to start a new paragraph, or it screws up the spacing of the document. Is there a command to avoid this? If there were a command/package to consum...

ruby on rails logic for a partial in a layout

I have a sidebar that is going to have some logic in it, similar to how a view talks to a controller. Where do I put the logic in for the partial? Do I create a new controller for the layout and put it in there? The layout is for logged in users, like a dashboard. The dashboard is going to have a sidebar that shows the same dynamic cont...

CSS or JQuery Fixed sidebar in website layout

My website is setup with the content structure like this <body> <div id="header></div> <div id="contentwrapper"> <div id="content> ... </div> <div id="sidebar"> ... </div> </div> <div id="footer"></div> </body> I'm trying to make my website behave where sidebar stays in t...

Problem with centering my WPF control

Hi i have a window where i add a new usercontrol to with an image, i simply want to center the image (thus the control) in the middle of the screen (both vertically and horzontally) can only get the vertical on e to work. Im gonna swap content in the dockpanel from my codebehind and want to show this startupd screen before i start doing ...

Parsing a 'template' in rails (alternatives to gsub)

Hi everyone, I have a 'template' system in my CMS rails app. Basically the whole HTML template is stored in a database column and it has key code in the string (like <!--THEME_Body-->) that gets replaced with content generated by the application. I use an actual layout to render the template. All that is in the layout is: <%= generate_...

How do I change the amount of whitespace between sections in Latex?

How do I modify the distance between the end of a section and the header of the next section in a Latex document? ...

Are forums considered tabular data?

Stackoverflow uses tables for questions/answers, I was told by many SO users that this was wrong and that questions and answers are not tabular data. So now I ask, are forums tabular data? Most major forums (vbulletin) I beleive all are using tables. I am assuming this is considered tabular but I would like a second or more opinion ...

In Qt, how do I align form elements in different group boxes?

Hello, I'm trying to create a standard two-column form, where the first column is a text label (QLabel) and the second column is an interactive widget, typically a text field (QLineEdit). We have decided to place form rows that share a common theme inside a QGroupBox, and thus in a separate layout than the main layout. Thus, the form el...

Help on DotNetNuke

Does any body know how can i change the layout of a dotnetnuke website. I need to modify the standard layout ...