size

<Div> Field Size

Hello! I wanted to know if there's any way by which one could restrict the size of a <div> field. By this i mean if we keep altering the contents of <div>, is it possible for us to get a scrollbar within the div? Otherwise the size of the <div> expands uncontrollably and results in the page getting messy! Thanks! ...

What is height in em?

I am still not clear what does size in em mean? I have worked px, pt in CSS. What would 0.8, 1.0 and 1.2 em mean? I have seen height's in CSS like: height: 0.8em; or height: 1.2em; How is it calculated? ...

Using System.Drawing.Size to represent width and height as pixels OR percentages?

I am in the middle of creating an HtmlHelper method to generate code for various html elements with a width and height. I have a class like the following simplified example. public class Media { public string Url { get; set; } public System.Drawing.Size Size { get; set; } } I will be generating some HTML like the following. <vide...

How are PDF sizes specified?

I am generating a PDF from HTML using a library, and all the size parameters that I am giving are in pixels. This seems kind of odd. I just googled the internet for A4 size in pixels, and can I just use these values everywhere? Is this how it should be done? Will the generated PDF look correctly? Otherwise, do I need to somehow compute...

How do Change swf file dimension in html....?

Hi guys... I just built a flex applcation with AS3 only.. the generated swf will expand as much as browser's window..I wish to reduce the dimension of swf file...any ideas?? Thanks.. ...

Size miscalculated when dynamically adding JPanels

I am writing an application that is a virtual notebook. The idea is to have panels with various content (which is based on an external file) added to a panel that acts as a page. Once that page is full, its specialized add method should return false. The problem is that I can't figure out how to accurately determine the size of the pane...

Return actual size of JComponent, as displayed

Good evening, I'd like to know how to get the size of a JComponent after it's been laid out with a LayoutManager. I've read that this is possible, if you just call dolayout(), validate(), or setVisible() beforehand. However, I can't get it to work in my code. The reason I'd like to know this is to only add as many components as will fi...

IntelliJ Idea disable font increase/decrease on CMD+scroll

Hello, I am using IntelliJ IDEA 9.0.2 on Mac OS X - with the Magic Mouse. Whenever I press the command button and move my finger a micrometer or two on the surface of the mouse, IDEA immediately increases or decreases my font size rapidly. How can I disable this feature? Thanks in advance! ...

Creating a dynamically sized Flex list component

I know there are a lot of questions about dynamic sizes for Flex components, but this one is quite specific and the other answers aren't a whole lot of help. Briefly, I need a List that resizes to exactly fit its content, unless that height exceeds its (dynamically sized) parent container. My requirements are as follows: The component ...

Strange string size detection in iPhone

I have used a UIWebView to simply show a string, with font size 14px (declared in style) the string occupies approximately 1/4 - 1/3 of the iphone screen (in height) with restriction of width of 190 then I use NSString sizeWithFont: constrainedToSize: to detect how large is exactly this string. UIFont *font = [UIFont fontWithName:@"A...

How do I find the display size of my system in Emacs?

I use the same .emacs across multiple machines, operating systems and platforms. I would like the default frame size of Emacs upon invocation to be relative to the available screen size (e.g. 96 lines work very well on a 1600x1200 desktop screen, but on an 1280x800 laptop I need to specify no more than 68 lines). Is there an emacs-lisp ...

Softhink DHTML Menu - How 100% Width = Fit To Page

hi my dear friends : i have a Softhink Menu In My Asp.net web app and every thing is ok. i want to force this menu to change it's width when the browser width changes (or screen resolution changes). i mean i want this menu with 100% width in my page. how can i do that? thanks in future advance... best regards ...

What is the size of the icons in the system tray?

Hi every one, I want to change the notification icon of my application but don't know what is the size so as to make it properly displayed. Currently it is automatically resized and break my pixels! Please help! ...

How to measure the amount of memory an individual object takes in .NET

Hey all, I'm wondering if there is a simple command or instruction in C#/.NET and/or Visual Studio that can tell me how much memory an individual object is taking up? I have a sneaking suspicion that the sizeof() operator is going to lie to me ... am I justified in this belief? There is a somewhat related question here, but no definit...

self.view.frame changed size ifself unexpectedly in landscape mode

Hi all, I've setup the view controller's view via IB. The view is set to landscape with width 480 and height 320. It loaded correctly in the simulator. However, when I checked self.frame.size by using NSLog, I found that the frame size changed itself without any rotation of device or any code. Here is what I get: In viewDidLoad -->...

changing character size with CSS

Hi. Is it possible to change the size of a specific character using CSS? For example, in a paragraph I am using font-face: Arial; font-size: 12pt;. I would like that only the letter "a" would appear in size 10. Is there a way to do that? Thanks. ...

How much is 32 kB of compiled code

Hello, I am planning to use an Arduino programmable board. Those have quite limited flash memories ranging between 16 and 128 kB to store compiled C or C++ code. Are there ways to estimate how much (standard) code it will represent ? I suppose this is very vague, but I'm only looking for an order of magnitude. ...

*Resolved* - visual studio controls changing size between computers problem

Hi, i have a wierd problem that i need to work out how to resolve, I have spent the last couple of weeks working on a project for work on my laptop, but when i open the program on one of the work pcs alot of the controls are the wrong size and over lap etc, the differences between the machines is this: Laptop: Windows 7 Pro; Display ...

Efficient way to determine estimated XML filesize with XSLT/XPATH

Hello, is there an efficient way to determine the estimated filesize of an xml stream without the need to save it? Perhaps calculate the filesize of a soap response. The available tools are only xml technologie. One try was to serialize the stream and count the string-length of the serialized output. But this takes really long for huge...

iPad uiview frame changes right after initWithFrame

Okay so i have a very basic app with a view in it with one button. i have the controller set to only allow landscape. My problem is that after it is initialized, and then i click my button (which only has a log statement) , is different than the log statements i have at the end of my init. I start the app in landscape mode on my simul...