height

How do I set the maximum length for a spinner's drop-down list?

不羁的心 提交于 2019-12-02 20:40:53
I have a spinner which currently obscures some text below the spinner when opened. I need to limit the maximum drop-down length of the spinner, either through java code or through XML, so that it does not obscure this text. The current design is the left example while the desired design is on the right. How do I go about limiting how far the spinner drops down to when opened? At present, it drops down to fill the entire portion of screen below it. One way to achieve this is to use ActionBarSherlock 's IcsSpinner. I made the needed modifications to limit the size of the spinner and that seems

Full viewport height scaling div just css no js… Possible?

半世苍凉 提交于 2019-12-02 20:36:18
Ok, I'm trying to get a div to scale and the height is always the height of the viewport. I'm going to link to my examples as it needs some explaining. www.madmediablitz.com/tv/precentdemo.html The link above is the closest I've come to a solution and I'm hoping that someone here will find it simple to fix. What I want to happen is the tv to always be the height of the viewport (to a degree, min-height:~400px; max-height:~700px;). The code that I used there is based on http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ . www.madmediablitz.com/tv/precentdemo_alt.html This

UISegmentedControl - altering height in Interface Builder

前提是你 提交于 2019-12-02 20:32:31
I'm creating a number of static custom UITableViewCells and have dragged a UISegmentedControl onto one of the custom cells. Whilst the segmented control allows me to alter its width I cannot alter its height in Interface Builder (that property is greyed out on 44 in the 'size' section of the property inspector). I know that a UISegmentedControl can be crated with a custom height in code and added to a UITableViewCell. Is there any way to adjust the height of the segmented control in Interface Builder? David Kanarek No, it must be done in code. See this question. You can also open the xib file

Height auto - calculated height is incorrect so background is not working - ASP.net 4.0 - Master Page Used

若如初见. 提交于 2019-12-02 19:45:48
问题 I am trying to make height auto. Whatever i tried did not work until now. I am using masterpage, asp.net 4.0 ,css Here the config Here the css classes * { margin: 0; padding: 0; } .logo { height: 100px; width: 1000px; position: absolute; top: 0px; } body, html { height: auto; height: 100%; } .footer { visibility: hidden; } .MenuBarMasterPage { position: absolute; top: 202px; margin-left: auto; margin-right: auto; width: 1000px; height: 40px; } body { background: #0C0C0C url(http://static

Fluid height main body with header and footer

独自空忆成欢 提交于 2019-12-02 19:17:01
问题 What I am trying to do is have the header at the top of the page and the footer at the bottom, with the map full up all availiable space in-between. I also want the header and footer to have fixed heights as px not %. However, at the moment because I set the main map to 100% it forces the footer off the bottom of the page and introduces a scroll bar. This is my example code: http://jsfiddle.net/W4mXP/20/ CSS html, body { height: 100%; width: 100%; } #topbar { height: 50px; width: 100%;

facebook canvas height no scroll set in ie8 and firefox

柔情痞子 提交于 2019-12-02 19:14:48
问题 hey, i want to set a long page app without fb will limit the height of my app and append scroll i did iframes& canvas and autoresize in settings and apply that code and its limits me in ie its shows scroll and in firefox its cuts the content: the code is here: http://pastebin.com/bmweWuTS please help 回答1: I am actually having the same issue, it started yesterday, but i have not changed the code. Facebook having some issues maybe? I was using setAutoResize, but started getting the scrollbars,

Using jQuery to adjust a parent element's height to match it's visible child's height

一个人想着一个人 提交于 2019-12-02 18:46:42
问题 I've got a slideshow running in a container and need the height of the container to match the visible slide's height. Unfortunately the images are absolutely positioned and there's nothing I can do about it. To deal with that, I'm using a little jQuery magic to take care of the same functionality. For some reason, my code isn't working. Whenever the #container element is resized the function runs and is supposed to adjust #main 's height to the same value as the visible slide's. But, uh.. no

Stackpanel: Height vs ActualHeight vs ExtentHeight vs ViewportHeight vs DesiredSize vs RenderSize

a 夏天 提交于 2019-12-02 18:08:29
i want to know the height of all items my StackPanel . What is the difference between: Height - Gets or sets the suggested height of the element. ActualHeight - Gets the rendered height of this element. ( readonly ) ExtentHeight - Gets a value that contains the vertical size of the extent. ( readonly ) ViewportHeight - Gets a value that contains the vertical size of the content's viewport. ( readonly ) DesiredSize - Gets the size that this element computed during the measure pass of the layout process. ( readonly ) RenderSize - Gets (or sets, but see Remarks) the final render size of this

Shrink header height by scrollTop value

扶醉桌前 提交于 2019-12-02 16:11:18
问题 Howdey! Simple problem: I've a fixed header, the height shrinks down based on the window scrollTop -value to the half of its height. What I have so far: HTML <div id="header"> <img src="http://yckart.com/ph?text=scroll down" alt> </div> CSS body{padding-top:200%} /* not really needed */ #header { position:fixed; top:0; left:0; right:0; height:200px; color:#eee; background:#222 } #header img {height:100%; width:auto} JS var header = $('#header'), headerH = header.height(); $(window).scroll

height=100% not rendering the google maps api

无人久伴 提交于 2019-12-02 15:44:51
问题 I am trying to use the Google Maps API. I have gotten a authorization key and pasted in the sample code they gave us, but I can't make the map render even when they tell me to make sure I put a height of 100% on both my map div and the body. I have tried and it won't show up. If I put a 500px height on the map div, and give the body a 100% height it works... but I want to know why height of 100% will not will not render. I am copying exactly what the Google documentation (https://developers