height

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

我的未来我决定 提交于 2019-12-03 07:58:40
问题 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. 回答1: One way to achieve this is to use

Internet Explorer doesn't honor my min-height: 100% with flexbox

♀尐吖头ヾ 提交于 2019-12-03 07:53:07
问题 I've been looking through all the min-height: 100% solutions on StackOverflow and the web and I can't seem to find one that fits my (relatively simple) needs. Here's what I want: I have a two column container, and both columns should stretch to be equal height. When the content doesn't fill the screen, the columns should stretch to the full window height. I'm happy to use flex-box, but I'd prefer not to use JS hacks if possible. Example Code: http://codepen.io/anon/pen/dwgDq?editors=110 <

jQuery - dynamic div height equal to the height of the whole window

China☆狼群 提交于 2019-12-03 07:16:22
i am using the code found here jQuery - dynamic div height <script type='text/javascript'> $(function(){ $('#center').css({'height':(($(window).height())-162)+'px'}); $(window).resize(function(){ $('#center').css({'height':(($(window).height())-162)+'px'}); }); }); </script> now the height change works fine when you resize the window, but if your scroll down the height does not change, this means the window property does not include things beyond the size of the browser window so if you scroll down the height does not increase so what can i add that will be the size of the whole content not

Xamarin.Forms ListView size to content?

最后都变了- 提交于 2019-12-03 07:15:50
I have a pretty large form (adapted mainly for tablets), that has a TabbedPage nesting a ScrollView and a vertical StackPanel containing many controls. I have few occurrences where I have a ListView that contains a few single-line items, and I need it to size to content. I'd like to get rid of its scroll-bars, but anyway I don't want it to take up more space than what's required for its items. Is there a way (even an ugly one) to achieve that without have to write a renderer x3 platforms? Here's a pseudo describing my tree: <ContentPage> <MasterDetailPage> <MasterDetailPage.Detail> <TabbedPage

UISegmentedControl - altering height in Interface Builder

那年仲夏 提交于 2019-12-03 06:53:54
问题 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

jScrollPane 2.0 height problem in chrome

橙三吉。 提交于 2019-12-03 06:11:13
I am using a div with class scroll-pane (height 100%) within an absolute positioned div. The scroll-pane div contains some text first, followed by an image and followed by some text again. The image height is set to 200px. Problem is! If I view the scrollpane in Chrome (latest Version) I sometimes can scroll the complete content and sometimes, after refreshing the site in the browser, not. Not does mean that I can only see a part of the second text and not more. So the actual scrolling height shrinks. If I refresh again I might be able to see it all complete again and so on. It changes every

Set DIV height dynamically based on viewport height

假如想象 提交于 2019-12-03 06:06:37
问题 I'm trying to set a div's height to 30% of the viewport height and I would very much like to scale it when the height of the viewport changes. I tried setting min-height: 30%; height:30% but it is not working. I took a look at JQuery's height(); but I just don't know how to get started. Thanks. 回答1: function thirty_pc() { var height = $(window).height(); var thirtypc = (30 * height) / 100; thirtypc = parseInt(thirtypc) + 'px'; $("div").css('height',thirtypc); } $(document).ready(function() {

Force nested divs to have min-height of 100%?

て烟熏妆下的殇ゞ 提交于 2019-12-03 05:51:48
I know that min-height: 100% will only work to take up a minimum of 100% of its parent element's height if the parent element has some numeric value for height, but what if I have a few nested divs and I want them all to have a min-height of 100%? I tried min-height:inherit but that didn't work either? I know I can probably solve this problem with JavaScript by simply checking the browser height value on document load and then assigning that to the min-height property of my nested divs, but I'd like to know if it would be possible to solve this with just css? Edit : I should also mention that

jQuery 1.8 outer Height/Width not working

爷,独闯天下 提交于 2019-12-03 04:23:10
I have used outerHeight and outerWidth on many places. Now, after jQuery 1.8 was released I have met a lot of issues caused by object return instead of its size. For example: $('#stackoverflowdiv').Height() // returns 100 px $('#stackoverflowdiv').outerHeight() // returns "stackoverflowdiv" div The only thing that I have found to fix this was to use "true/false" in the function as follows but the I get the same results as the standard width() and height() functions: $('#stackoverflowdiv').outerHeight(true) // returns 100 px $('#stackoverflowdiv').outerHeight(false) // returns 100 px Has anyone

WPF: Binding the height of a component to another's

雨燕双飞 提交于 2019-12-03 02:31:12
I have, in a window, a Grid that contains a RadioButton , a TextBox and a Button , each in column 0, 1, 2, respectively. They all have their heights set to auto. Then, in another part of the window, I have another Grid with a Label , a TextBox and a Button , in columns 0, 1, and 2. Heights are also set to auto. The problem I have is that the first grid's height is smaller than the second's. I guess it's because Label is forcing the second one to be taller. How can I make it so that the first grid is as tall as the second? I tried doing this: Name the textbox in the second grid SomeName. In the