layout

PdfSharp: Text height/positioning problem

Whether I use XTextFormatter or not, I get the same error about the LayoutRectangle having to have a height of 0 or something like this. new PdfSharp.Drawing.Layout.XTextFormatter(_gfx).DrawString(text , new PdfSharp.Drawing.XFont(fontName, fontSize, (PdfSharp.Drawing.XFontStyle)fontStyle) , new PdfSharp.Drawing.XSolidBrush(Pd...

using layouts for menus in rails

With ruby on rails, the scaffolding creates layouts for all the controllers. If I decide to use an application layout, then I need to delete all those layouts (otherwise they will override the application layout). Now, I'm assuming most sites are going to want some site wide menu. The most straightforward place to put a site-wide menu ...

Adding content to a layout from a partial.

Suppose I have an application layout, and in their I yield for :head content as follows: <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <title></title> <%= stylesheet_link_tag 'scaffold' %> <%= yield(:head) %> </head> Suppose in that same application layout I call a partial to render the ma...

Twitter Widget on Blogger

How can I fix the view of this twitter on my blogger blog. Here it is the widget page: http://twitter.com/goodies/widget%5Fprofile Here it is how it ends looking on the blog (not rounded corners, misplaced names and images): http://my2hours.blogspot.com/ ...

How to force a textbox to split, rather than move to a second page in SSRS 2005 (PDF Export)?

This question is a follow up to my original question, I've done a bit more reseach, i narrowed a problem down quite a bit. I've also uploaded a sample .rdl to illustrate the problem I've got the following report setup: a header (image in the body), two textboxes, and a footer. First textbox has a little bit of text, and second textb...

Is there a good interactive 3D graph library out there?

I'm looking for a library that will layout and display graphs (i.e. network diagrams, not charts) in 3D, with some interactivity like selecting and dragging nodes, rotating the display etc. I would like to do this in a web page so Javascript or Flash are preferable, I'd also consider Java. Having looked myself I realise the options are ...

I need to match a font from a designer to something similar for web

I don't know if this is an Illustrator spec or where exactly, but a designer gave me this spec for a font: Helvetica Neue (T1), 35 thin, 20 pt, off/ 454545, on/70a63a There are other similar ones for different areas of the page, but if you can tell me how to match this one using CSS, hopefully I can figure out the rest. Thanks!...

How to go about serving the same app on different resolutions/screens

Scenario: You need to expose the same app on different screens - let's say a standard 15''-17'' a portable 10'' and a mobile 4'', possibly working on different resolutions. Question: Do you attempt to go for a liquid layout that gets rearranged depending on the real estate available or do you roll N (one for each range) separate UI laye...

Using CSS to make sure my Logo is always X ammount of distance away from border.

I'm trying to make sure my web application is always centered on the screen regardless of screen resolution. I've tried: .Logo { Top:15px; Left:50%; } But it's not doing anything really. Any help, wise CSS-Gurus? ...

Using CSS to make my gradient image stretch itself vertically.

I need some help. Here's what I'm getting right now: img ref I need the gradient to stretch itself vertically using CSS. Here's the code for my CSS + HTML. <html> <head> <title>Test Site 1 - Color Palettes and Scheme Test</title> <link rel="stylesheet" href="TestSiteCSS.css" type="text/css"> </head> <body> ...

How do I customize the WPF StatusBar layout?

Adding more than one child to a WPF StatusBar results in poor layout with little option to customize. For example, this code: <StatusBar> <StatusBarItem> <TextBlock>Ready</TextBlock> </StatusBarItem> <StatusBarItem> <TextBlock>Set</TextBlock> </StatusBarItem> </StatusBar> Results in: This is not the ...

WPF: StackPanel item auto-height question

I have a Stackpanel and want that the items automatically set their sizes regarding to their contents but the items should not automatically fill the height of the Stackpanel (But Stackpanel should have auto height according to largest item). I also tried WrapPanel which has the same problem. I want the TextBox "test" be be vertically c...

How to make a ListView transparent in Android?

How to make the ListView transparent in android? The background android screen image should be visible. ...

Getting uniform layout in both IE7 & IE8 with form elements

It would seem that IE7 puts an extra 1px of spacing above and beneath form elements. IE8, FF3.5, Chrome 2 & Opera 9.5 correctly renders these elements without the spacing. What I want though, is for the display to be the same in IE7, so is there some kind of workaround to get IE7 to correctly render the elements? It doesn't appear to m...

Cancel scrolling in Layout Manager

Hi, I can't find solution for the following problem. I have custom list field, which overlaps the boundaries of its layout manager. List field consumes navigation events from manager to highlight currently selected row with special color. Layout manager is configured to support scrolling. When I scroll trackwheel down, layout manager in...

Make container div be height of one child div, AND make the other child div height of container

First of all, sorry about that title. I'm not the best at writing those things. I have a container div (let's call it #container) which contains two divs (#a and #b). I am not in control of the content of these two divs. I want #container to be the height of #a. I also want #b to stretch (or shrink, depending) to 100% of #container, a...

layout shifts - CSS problem

Hi, I am coding this layout as a wordpress theme and having a slight problem This is a link to my index page and how the layout should be, however, after adding comments and a comment form, the layout shifts to the left a bit. I am pretty sure it has to do with the comments or comment form because when I delete the code to include th...

How do I ensure that a layout update has occurred?

I have a UserControl with a dependency property called ItemsSource. When the property is changed, I need to calculate the size of various elements. To do this, I have to access the UserControl's ActualWidth and ActualHeight properties. The problem is, if an object is assigned to ItemsSource before a layout update has occurred, ActualWid...

CSS overriding dilemma

Basically I have a theme in my ASP.NET application and it contains a css file that turns all my tables blue, which looks great. It looks like this table { background-color: #DEF1FF; border-color: #DEF1FF; color:#5793C9; } td { // TD properties } But now I want one table to be a different colour. I created a class to over...

Weird CSS issue in IE7

Hi, I'm having a rare CSS issue in Internet Explorer 7 (I'm actually testing it on IE8 in compatibility view, but the client sent me screenshots in native IE7 too), it's easy to reproduce: Go to this site (spanish). On the left column, click the border (or somewhere around) the box labeled "Fiestas anteriores" The element should now be...