width

.net calendar control dimensions under vista

I'm developing a desktop application in Visual Studio 2008, and I've made the delightful discovery that evidently under Vista, the Calendar control is 45 pixels wider than the same control in XP. Naturally, this ruins the layout of my from, and I don't have space to give. If I tinker with the dimension attributes of the calendar in Vista...

WPF: How can you set ToolBarOverflowPanel children to be the same width?

In a Toolbar, how do you set it's overflowpanel children to be the same width, one child underneath the other? Is there a way to override ToolBarOveflowPanel to act as a stackpanel? Databinding / manually setting the width of the objects that are in the toolbar sets the width of all of the items in the toolbar, not just those that appe...

jquery: why css('width') returns different value than width()

When I run following code: node = $('.period') alert(node.width() + ' ' + node.css('width')) i get '0 144px'. How is that possible? ...

WebKit width not updating?

I have a piece of code which runs on window resize. I am pulling the width, and the outerWidth of a input text element. This process works fine in every browser, except Webkit, which returns the proper result from outerWidth, but the result from width never changes from the on load original. This is actual console output from my script...

DIV width not listening to my CSS

The code below is an example of what I am trying to do, I need this div to span 600px wide however regardless if I put max-width: 600px; or width: 600px; it is still the width of my PC screen. How can I make it 600px wide? <style> .errormsg3 { text-align: center; font-weight:bold; color:white; font-size: 16px; back...

C# ListView Column Width Auto

How can I set the column width of a c# winforms listview control to auto. Something like width = -1 / -2 ? ...

How do you set the FrameworkElement.Width property to the value of a qualifiedDouble, in the code-behind?

I'm trying to set the width property of one of my controls to a qualifiedDouble, as described here on MSDN. (Scroll down to the "XAML Values" section to see MSDN's info on the use of a qualifiedDouble) However, I want to know how to achieve this in the code-behind, rather than XAML. The UserControls I am creating do not have XAML atta...

wpf minimize the width of a ToggleButton

Does anyone know a good way to minimize the width of a ToggleButton to only the width of the content plus padding? I've found 500 posts on how to make it stretch, but none for keeping it from stretching to fill the available space. ...

Dynamic SharePoint web part width and height

I am trying to dynamically adjust the width and height of a web part in a SharePoint web part page so that it fills up the entire available space. It appears that there is no way to choose a percentage for width and height from the web part property editor window in SharePoint. Also, trying to dynamically set it on the web part instance ...

How to get Body element height dynamically using JQuery

I need to get the body element height and width, when i resize the browser windows Please help me to solve this problem using JQuery ...

Tree enumeration, n-depth and m-width

Hi all, I am trying to develop a java algorithm for the enumeration of n-depth and m-width trees: Each node can have at maximum 7 children. Nodes are of different type: a first kind of node can have children but can not be a leaf. The second can have no child (so it must be a leaf). The root is at depth 0 and the width is the maximum ...

How can I calculate the logical width of WPF visual element?

I need to calculate the logical width of a visual element, before it gets rendered by WPF. For simplicity of explanation, I'll say that this visual element will likely be a Polygon object. It could be something else, but a Polygon makes it easy to visualize. So the XAML might look something like this: <Window x:Class="MyCLRNames...

width:100% failed to make textarea as wide as parent element in IE6?

related snippet as follows: <textarea class="w100"></textarea> .w100 { width:100%; } It works in firefox but not in IE6, why and how to fix this bug? EDIT:AFTER ADDING A DIV,IT WORKS NOW. <fieldset> <div> <textarea class="w100"></textarea> </div> </fieldset> ...

How to increase scrollbar width in WPF ScrollViewer?

I am wokring on a touch screen on a small device and the custom width of the scroll-bar is no good as one of my requirements is that everything needs to be doable by finger gestures. How can I set the width of the WPF ScrollViewer scrollbar? Note that I don't wanna change the width of all the scrollbars on the device (doable through wi...

GWT Relative Width

I'm trying to make a scroll panel that has relative size parameters. But the ScrollPanel.setSize(String, String) is impossible to work with if you have int values such as those returned by Window.getHeight, etc. Also when I do something like ScrollPanel.setSize("100%", "150px"); it doesn't change the ...

Width in percent-border

Lets say I wanted to make a horizontal nav bar, with five links, and I set the width to 20%. As soon as I add a 1px border to my links, they become bigger than 20% and the last link is moved onto a new line! How can I get around this problem? I was hoping CSS would allow me to do a minus padding value so that the border would actually b...

Stretching LI and contents

Please consider this site. I'm having trouble stretching the submenu list items in IE7. Notice that when you hover over one of the LIs under Restaurants, the green doesn't fill the whole line. I've tried {width: 100%}, but that didn't help. Any ideas why this is OK in Firefox but not IE? And how to fix it? Thanks. UPDATE: I can...

Table colspan relative width issue in Internet Explorer

I use tables for generating simple horizontal graphs (for easy scaling). I use colspanning to get exact overlapping (sometimes the cells overlap each other, but not in this example). My issue is that IE(8) renders the relative cell widths wrong. I know that a cell can not get smaller than it's content, but that is not the issue here....

Is 'width' applicable to a textarea?

Is the CSS 'width' property applicable to a <textarea>? In practice, people say that they use it successfully, for example using a rule like this: textarea { width:100%; } What's confusing me is that the CSS 2.1 specification for width says, This property specifies the content width of boxes generated by block-level and r...

CSS Layout - Dynamic width DIV

Hi - I have a pretty common layout issue that I have traditionally used a table to solve, but would like some advice on getting it done with CSS. I have 3 images that makeup a 'container'. The left and right images are usually just shown using tags, and the center image is displayed as a 'background-image" with my content over it, so t...