layout

CSS Related: Trying to position a div styled to look like a bar on a wepage

I'm trying to position a div tag on my page absolutely so no matter if you resize the page or not the div does not move position. . I've used absolute positioning in both the div tag and in some JQuery .css({position:absolute}), It still moves when i resize the screen. quite annoying. ...

New chrome release has broken my CSS

I have just installed the new Chrome (5.0.375.55) on xp. It has broken my layout though... don't tell me Chrome needs conditional statements now!? If you look at the sub menu you will notice it looks ok in every browser except this latest release Chrome. Bikram Yoga link Does anybody know a way targeting just this version of Chrome?...

Sliding drawer has 1 transparent pixel between handlebar & content pane.

I have created a sliding drawer with a handle bar and a content pane. There seems to be a single transparent pixel between the handle bar and the content pane. how can i get rid of this. here is my layout xml: <?xml version="1.0" encoding="utf-8"?> <SlidingDrawer android:id="@+id/drawer" visible="visible" xmlns:android="http...

Stretch empty WPF ListView to take the remaining space

I always have problems with a ListView inside a dynamic layout control like a Stackpanel. Right now I have a Window with a Stackpanel as Root-Control. The Stackpanel streches perfectly and takes the complete window. Inside the StackPanel are some other controls like textboxes and button all aligned fine. The last Object is a ListView. ...

Label Size is always NaN ?

Hi, I have a Panel which I want to extend and override MeassureOverride and Arrange to have my custom layout. Basically, the panel will contain some labels. As the label has some text content, it should have a specific size. However when I use label.ActualHeight or actualwidth, desiredSize ... in the MeassureOverride or ArrangeOverride...

Android Designer like "Interface Builder"?

We are beginning to learn Android, converting our iPhone apps over. There is a rudimentary editor for layouts in Eclipse, but it's not very good. Is there a visual designer that would be on par with the iPhone "Interface Builder" ? ...

Page layout breaks only in Opera which is weird?

Okay so I'm working on an admin panel, in which everything should always be only within the view port until you hit the minimum widths and heights set. The current version of it can be seen here (its still in development) : http://qwibbledesigns.co.uk/preview/Admin/ In layout terms, it works flawlessly in all browsers, even down to ie...

How to handle different screen resolution /screen size when developing a site ?

I would like to develop a site using jQuery that will work with all major browsers. I thought to start with a basic layout (a header, a couple of tabs with content, and footer). I wonder how should I create this layout to support different screen resolution, screen size, or window size. Should I work in pixels / points / percents when de...

Need a java library for visualization that support automatic layout

I need a java graph library for visualization that I can incorporate in my own application. I found that jgraph is excellent for visualization but require explicit positioning of the nodes. Is there any open source java graph library that support automatic layout. Any suggestion will be really helpful for me. ...

Why do I get an error while trying to set the content of a tabspec in android?

I have an android activity in which I'm using tabs. public class UnitActivity extends TabActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.unit_view); TabHost tabHost = getTabHost(); TabSpec spec; spec = tabHost.newTabSpec("control...

Android -- SDK/IDE Layout Bug (w/Custom Layouts)??

Hello all, Can someone tell me if this is a bug in the SDK/IDE: Any custom or extended layout I add to my layout XML causes the IDE to ignore the fact that there are any child views of that layout (they just disappear from the outline view/window), thus making them uneditable via the properties view/window. (I need to extend a layout to...

Android: Make application background behave like homescreen background

Hi, I have a big background image for my views's background, which also can be tiled (it's repeadable). When switching from one Activity to another i want the background to behave like on the homescreen (the background moves only a bit, but the foreground moves one screen with). Is this possible and how? Here is my current background d...

IE layout issue in XHTML

Hi, I am developing my first XHTML web page and I am facing issues on IE 7/8 (not a surprise I guess). If you go to: http://gtc.wcreations.net/ortho/eskulap/test.php and open it in IE8, then after navigating to: Dla pacjenta menu item and then "ABC PACJENTA" you will see that whole menu list is being refreshed anytime I hover to differen...

NSString sizeWithFont: returning inconsistent results? known bug?

I'm trying to create a simple custom UIView wich contain a string drawn with a single font, but where the first character is slightly larger. I thought this would be easily implemented with two UILabel:s placed next to eachother. I use NSString sizeWithFont to measure my string to be able to lay it out correctly. But I noticed that th...

Java method for android:layout_gravity

Hi folks, I would like to know if is there a way to call android:layout_gravity property from a java method. I didn't found any method in Android documentation to do it. This is the picture of the layout I want to implement: I know to do it through xml, as following: <FrameLayout xlmns:android="http://schemas.android.com/apk/res...

how to preserve layout of text in a TextArea control

Ho do I preserve the layout of text in a TextArea control in asp.net ? e.g. "This is some text:      - line 1 text      - line 2 text      - line 3 text" ...

Android layout with sqare buttons

I want to make a layout similar to this one: Four square buttons on the screen - each of those using half of the screen with/screen height (whichever is smaler). Independent of screen size/resolution. I already tried to achieve this by using a LinearLayoutbut the buttons are ending up using the correct width, but still having the hei...

MySQL Datefields: duplicate or calculate?

We are using a table with a structure imposed upon us more than 10 years ago. We are allowed to add columns, but urged not to change existing columns. Certain columns are meant to represent dates, but are put in different format. Amongst others: * CHAR(6): YYMMDD * CHAR(6): DDMMYY * CHAR(8): YYYYMMDD * CHAR(8): DDMMYYYY * DATE * ...

how does scrolling in android listview work?

I have an android-app with a listview in an activity. The listview has, if I call it so, three data states. no data loaded from inet -> only one dummy item is visible, saying that data is loading; data is loaded and shown in list; one listitem is clicked and now shows more information for this listitem (so it is increased in its height...

How to arrange labels in a flowlayout manner?

How do I arrange some UILabels and/or UIButtons of a variable length? I just want to add them to a UITableViewCell and they should arrange in a left-to-right flow, much like lines of text in a paragraph. I only found possibilities to create lables with a fixed size and position using "initWithFrame:...". Same seems to be true for Inter...