Hi,
I need a custom widget height. I tried using this
Integer.toString(yourWidget.getElement().getOffsetHeight())
but,
If I use it when I create it or add it to the container panel, it returns 0
If I use it in the contrainer panel's onLoad method, it returns the widget height before the style is applied
So, when should I use it ...
Hi,
I have this Iframe which I'm looking to center using css, but is there a way to do it without specifying the height and width of the object?
Thanks!
...
Here at the two links that will display my problem:
http://www.wontletthisbeatme.com/information.asp
On the Blog page, you will see that the content and container divs stretch to the bottom nicely even though the content does not require that much space. This places the footer at the bottom and it looks fine. However, in the second li...
How much space does a TextView take?
When I declare a TextView, is it possible to calculate how much space (height and width) it is going to take when actually rendered on the phone?
I have noticed that based on the different screen sizes of phones (or density), the TextView is rendered accordingly. I want to be able to calculate the e...
I have a nested layout which is dynamic (sizes are percentage values) or at least it should be.
I removed the text of the strings from the code:
<s:VGroup width="98%" height="70%"
horizontalAlign="center"
horizontalCenter="0">
<s:BorderContainer
borderStyle="inset" borderWeight="1"
cornerRadius="20"
textAlign="center"
...
I'm having a weird problem with IE8.
Page DOCTYPE is QuirksMode and I CANNOT change it (I wish I could, but there's no way at this time). Widths are hacked to fix the difference of box modem interpretation between IE and other browsers.
It's a simple horizontal navigation bar. It has a border all along, and the selected item should be a ...
I have the following HTML:
<html>
<body>
<h2>Title</h2>
<div id='large_div'>
blah.. blah.. blah..
</div>
</body>
</html>
How can I make the large_div take up the rest of the page height?
Here is the CSS for the page:
html { height: 100%; }
body { height: 100%; }
#large_div {
/* ??? */
}
...
Hi,
I am looking for a code snippet to get the height of the viewable area within a browser window.
I had this code, however it is somewhat bugged as if the the body doesn't exceed the height the of the window then it comes back short.
document.body.clientHeight;
I have tried a couple of other things but they either return NaN or th...
What I want:
So I have a textarea.
I write Hello World into the the textarea.
I want to get the Hello World's Height in Javascript.
What I have tried yet:
element = document.getElementById('textarea');
var textHeight = element.innerHTML.offsetHeight;
or this:
var textHeight = element.value.offsetHeight;
But t...
how to set iframe height to 100% with javascript
Example : http://mkb.ma/5f
...
Is there a way to get the content of a component inside a scroller to be at 100% height.
here is a simple example:
<s:Scroller width="100%" height="100%">
<s:viewport>
<s:Group height="100%">
<s:Rect width="10" height="500">
<s:fill>
<s:SolidColor color="0xFF0000"/>
</s:fill>
</s:Rect>
<s:Rect width="10" x="10...
I need to find a cross browser way of having two divs contained in a parent div where the first child has a fixed height and the second flows down to be contained in the parent.
<div id="parent"><div id="header"></div><div id="body"></div></div>
height: 500px
_____________________
| _________________ |
| | height: 20px | |
|...
I'm creating a canvas and setting it as fullscreen. In the canvas my getHeight() and getWidth() functions does not return the actual height and width of the full screen. It returns them as if I didn't set it to full screen.
How can I get the size of the full screen in nokia phones or other ones that have the same problem?
...
i load graphs via the following javascript function:
function loadMCorCBGraph(self,surveyID,questionID,varID) {
var img = new Image();
img.onload = function() {
$(self).parents().parents().siblings(".graph_container")
.empty().append(img);
};
img.src = 'drawGraph.php?type=surveys_report_MC_or_CB&surveyI...
I'm trying to create a simple banner ad where the mouse hovers over the button and a panel shows up over some content of the site.
I have two different .swfs: the container, which is the button and a loaded swf that has the animation that comes up when the button is clicked. The button is only 183 x 40px where as the loaded swf is 183...
Hello!
This is the testsite i am working on:
http://test.pafo.net/
As you can see, it cuts the middle line in half and i am trying to sort out why it does that.
The body backgroundcolor is just for testing.
The layout idea is
<div> - entire box
<div /> - top (image with the start line)
<div> - content
<div> - left (test 2 on ...
In what cases justify the "height" attr of TD over use of the "height" attribute in TR. I understand needs to be bounded to a 2D space. And TR only has "height" because it's horizontal object concept. But TD could be qualified as a column so potentially could just be satisfied with a "width" attribute.
Sure, you can claim that TD is ac...
hey guys,
i wonder if this is possible with simple css or if i have to use javascript for this?
i have a sidebar on my website. a simple div#sidbar it's normally about 1024px high, but the height changes dynamically due to it's content.
so let's imaginge the following case:
<div id="sidebar">
<div class="widget"></div> //has a hei...
My Problem
When I minimize the browser window the category menu does not minimize the way I would like it to. I would like the li elements to drop one by one below the other other li elements as the window is minimized. The problem is that the whole ul element is dropped below the p element.
A live example of the menu is located here. ...
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?
...