layout

Table cell doesn't stick to height I'm trying to enforce

I have a <td> that is just about empty since it only contains an &nbsp;. The height I'm trying to enforce is 110 pixels, but for some reason the table cell is rendered with a height of 182.317 pixels. Why? There are a few things I already checked: The font-size that applies to the non-breaking space isn't set to something that cannot ...

Can I make the Column section not expand to fill the page in iReport

Hi, If my report only generates a handful of rows of data (not pages, just rows) then I would like to have my totals row appear immediately after the last row of data, instead of being forced to the bottom of the page. How do I do that? I have tried a page footer and a column footer and they both appear at the bottom of the page rathe...

How to dynamically do this in code rather than XML?

I would like to define the following layout (which is currently an xml file) dynamically in my code. The end goal is to have the ability to conditionally include certain pages in my viewflipper. Thanks! <?xml version="1.0" encoding="utf-8"?> <com.gtosoft.dash.MyViewFlipper xmlns:android="http://schemas.android.com/apk/res/andro...

Qt - How to specify and make constant an element size in a layout?

Say there is a QHBoxLayout and some widgets in it. How to specify a widget width and hight in the layout, so that while resizing the widget which containes the layout the given width and hight stay constant? ...

How to let the string go to next line automatically

There is two Div in, which div have store some information. And two Div is side by side. I want to let the description automatic go to next line, if the string is too long. How can I do so? Here is the code: <div class="round"> <div style="float:left;width:50%"> <ul class = "round"> <li> Description: DFGHJKXCFGV...

Is there a cross-browser css way to decorate only last word in a span block?

I need to show user's list which should look like in the example below: Helen Burns Edward Fairfax Rochester Bertha Antoinetta Mason Adèle Varens Is there a way to achieve this without using javascript? Each row should be one span, i.e. <span>Helen</span><span>Burns</span> is not acceptable. ...

Using the WPF WrapPanel to Wrap and Right Align Text - WPF Bug?

I am attempting to use the WrapPanel and two TextBlocks to append an asterisk (*) to the left side of some text, allow the text to wrap, and force the text to be right aligned. I have successfully done so by creating a WrapPanel with the FlowDirection set to RightToLeft and adding my text, followed by the asterisk. However, if the text...

WPF Grid layout panel with row height set to "Auto"

I'd like to have a Grid with a row on the top and bottom with either labels or buttons in them. In the middle I plan on using a ListBox. I want the ListBox to expand to use all the available space. It would be nice to not hard code the height of the other two rows. My XAML is below. How can I make the middle section expand automatic...

How to display buttons above tab widget on Android?

I'm trying to add buttons above a tab-widget but they are always displayed under the tab-widget's tabs. The buttons are displayed on front layer so that they appear on each tab. Does anybody have an idea is it possible at all to display any widgets above the tab-widget? Here's an example layout to give some idea on the placement of th...

setting layout parameters

So Im trying to add an imageview to my current xml design - and its working decently. Now my main problem is that I cant seem to find a way to set the attributes for the image like where it needs to be displayed etc. RelativeLayout mRelativeLayout = (RelativeLayout) findViewById(R.id.board); ImageView i = new ImageView(this); i.setImag...

WPF layout for complex card game

As my first WPF project, I am attempting to build an application to play a card game similar to Magic the Gathering. It is not clear to me how to lay out the main play area. You can see some examples that are similar to what I am attempting by looking at example 1 or example 2. The chat/info areas on the right would be separate user c...

Add & remove JTextField at runtime in Java(Swings) program

how to add and remove components(JButons , JTextField etc) at runtime in a Swing program (Java ) , without using NetBeans ? which Layout should I use ? I want the user to enter Username & Password and , when he clicks on Submit button , the new screen with new components(JButtons , JTextField etc) should appear , I am unable to achieve ...

Android having NumericUpDown Button?

I've tried to find the NumericUpDown button in Android, but failed. Do you know what the controller is called in Android - please let me know! <?xml version="1.0" encoding="utf-8"?> <!-- main.xml 7/22 2010 --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layou...

Zend Framework layout or view lag

I have a website built on ZF. I don't know why but is lagging as hell. Loading simple page tooks 4s. Time is going down when I disable layout. When rendering is enabled it's working normally. So I can use action views but I can't use layouts. Can it be someting bad with layout? Or I'm not setting up layout properly? Site: http://zgarnij...

Stacking Two ImageButtons

I have two ImageButtons, and I am trying to stack one on top of the other. I essentially want to make a screen with two big buttons that each take up 50% of the available space. The code is below. Here is a capture of the layout it yields http://imgur.com/cQT0W.png I have played around with layout_gravity and gravity on the parent. Setti...

Android - TextView and VideoView problem

I have a TextView inside a LinearLayout and a VideoView inside a LinearLayout. The parent layout is a RelativeLayout that includes the TextView's linear layout and VideoView's linear layout. Since I add the VideoView with FILL_PARENT, FILL_PARENT params (coz I want it to fill the screen in landscape mode), in some phones when I rotat...

GWT code splitting strange behaviour in IE8

Hi everyone, I have a widget (Main.java) which encapsulates funcionality and implements the Async Provider pattern for code splitting. In addition, I use the Prefetching pattern so that the browser downloads the code inmediatly after it loads a Welcome screen. The problem raises in IE8. If I use the Main widget without doing prefetchin...

What is the best way to display images/slides/containers on the iPad?

Hi everyone For an app that I am writing I need to display several views (in my case images, yet I guess that should not matter all that much) in a style similar to the way images are displayed in the Fotos app for the iPad. Consider this graphic: Obviously on portrait view fewer slides can fit in per row than on Landscape view. What...

wpf - how do I apply same margins to all elements in a panel?

Is there a way of automatically tells all children items (e.g. labels, textboxes etc) to have a margin of 5, within a panel (e.g. dockpanel)? i.e. as opposed to having to set the margin for each element separately - also noting setting the margin on the panel itself is no good as then the panel has the margin not the elements. by the w...

How do I set Layout and Text size to DP inside program?

Basically I have this inside XML, but I have to recreate it inside a code. How do I do it? <EditText android:layout_width="140dp" android:layout_height="20dp" android:background="@drawable/input_bg01" android:textSize="10dp" android:gravity="center" android:text="111-222-333 FOOO" /> ...