height

Is it possible to get a div's height to be 100% of an available area?

怎甘沉沦 提交于 2019-12-02 04:18:17
I have a design that has a left side bar and a main content well on the right. On most pages on the site, the left sidebar is taller than the content well, but for a few pages, the content well is very tall and the sidebar is left floating with no bottom. I have created a piss poor example of what I'm talking about here: http://www.pmind.com/staging/pisspoor.html I remember years ago the answer was to just assign a background image that would fake it, i.e. in my example just make an image that had a green bar down the left side of it and make that the background to the main red div. And I know

PyQT4 WheelEvent? how to detect if the wheel have been use?

可紊 提交于 2019-12-02 04:12:11
im trying to find out in PyQT how can i set the Mousewheel event? i need it so i can attach it to the Qscroll area the code im using is working fine. but the size is hardcoded. i need it to somehow dynamically adjust depending on how the wheel(on the mouse) is used.. like when i slide the mouse wheel up. the height of my frame extends(like 50pixels per tick) and vise versa. self.scrollArea = QtGui.QScrollArea() #set the parent of scrollArea on the frame object of the computers self.scrollArea.setWidget(self.ui.Main_Body) self.scrollArea.setWidgetResizable(True) #add the verticalLayout a object

how to get windows console height?

泪湿孤枕 提交于 2019-12-02 03:54:47
That is number of lines in the console ? I know SetConsoleWindowInfo() but I can't find anywhere sheet for corresponding GetConsoleWindowInfo() . Use GetConsoleScreenBufferInfo : CONSOLE_SCREEN_BUFFER_INFO csbi; GetConsoleScreenBufferInfo (GetStdHandle (STD_OUTPUT_HANDLE), &csbi); //use csbi.dwSize for the rows and columns... If you're on Vista and up you can use the "Ex" form of this as well. 来源: https://stackoverflow.com/questions/10921152/how-to-get-windows-console-height

Finding the full height of the content of a page/document that can have absolutely positioned elements

百般思念 提交于 2019-12-02 03:26:05
I'm trying to get the height of a page (which might be loaded in an iframe) that has absolutely positioned elements that extend below the normal bottom of the page. Here are the things I've tried: document.body.scrollHeight document.body.offsetHeight document.documentElement.clientHeight document.documentElement.scrollHeight document.documentElement.offsetHeight $(document.documentElement).height() $("html").outerHeight() $("body").outerHeight() $(document.html).height() None of these pay attention to the absolutely positioned elements. Another way to ask this question: How do I find the

WPF: How to auto-size WebBrowser inside a Popup?

送分小仙女□ 提交于 2019-12-02 02:15:00
I have a Popup with a WebBrowser inside (see code below). The WebBrowser have MaxWidth = "800" . I want auto-size the height of WebBrowser to its content height after it load website, so it dont need vertical ScrollBar. I tried set Height = "Auto" or MaxHeight = "5000" , but I dont get right result. Can you help me how to do it? Thank you very much! <Popup Name="popup1" VerticalOffset="3"> <Border BorderThickness="1"> <DockPanel> <ScrollViewer MaxHeight="700" VerticalScrollBarVisibility="Auto"> <WebBrowser Name="wb1" MaxWidth="800"/> </ScrollViewer> </DockPanel> </Border> </Popup> Here is the

Animate Height Bottom to Top Instead of Top to Bottom

强颜欢笑 提交于 2019-12-02 02:07:43
How can I achieve height animation in reverse? Instead of the typical animation starting from the top and working its way down, how can I have it start the animation from the bottom of the element and work its way up towards the top of the element? The event is triggered by a#link-1 , the animation takes place in div#line-1 . This is my code: It doesn't appear to be working. :-/ HTML <div id="pageContainer"> <div id="line-1"></div> <a id="link-1" title="" href="#">Link 1</a> </div><!-- end #pageContainer --> CSS #pageContainer{ position: relative; margin: 0px 0px 200px 0px; min-height: 748px;

Find Text Cells That Are Too Small to Display Contents

别说谁变了你拦得住时间么 提交于 2019-12-01 23:31:18
问题 I have a worksheet with cells that may contain text that sometimes exceeds the width and height of the cell. If I don't notice it and adjust the row height, the text shows up as cutoff. Does anyone have a VBA snippet or tool that can locate these cells so I can adjust them? Thanks! 回答1: Identifying which column is too wide would be tricky, especially since the text within the cell can have different fonts and/or font sizes. It is much easier to automatically size the columns by making use of

Webview height not changing after resize font size

☆樱花仙子☆ 提交于 2019-12-01 22:22:51
In my application I use a ScrollView. This ScrollView contain many Webview. I change the webview font size: webView.getSettings().setTextSize(WebSettings.TextSize.LARGER); after I change again the font size: webView.getSettings().setTextSize(WebSettings.TextSize.SMALLER); The font size is changing, but the webview layout height is not changing. The text is smaller and there are a big space. There are any method to this problem? you might have to reload your webview with ie: webview.loadUrl( "javascript:window.location.reload( true )" ); I had the same problem and fixed it using code: private

How can I prevent the user from resizing the silverlight out-of-browser window?

送分小仙女□ 提交于 2019-12-01 21:29:35
I have a silverlight app which can be installed as out-of-browser . I've defined the Height and Width in the main UserControl . I've defined the same Height and Width in the OutOfBrowserSettings.xml file. But the user can still resize the out-of-browser frame window. How do I prevent this? LBugnion The window hosting the Silverlight application cannot be controlled by the application when it is running with normal permissions, that would be a security issue. However, if you install the OOB application with elevated permissions, you can change the chrome of the window and define your own. This

How to dynamically increase the height of a <div /> based on the contents?

只谈情不闲聊 提交于 2019-12-01 21:29:33
I have a div on a page that I need to put content into. Sometimes the content is a few lines high, and sometimes the content is more than the screen height with varying sizes in between. There is content below the div so I need that content to be pushed down appropriately, so the content below is always right below the div. Basically, it looks as follows: <div id="MainContentArea"><!-- my content --></div> <div id="BottomContentArea"><!-- pre-existing content --></div> It's easy for me to specify a height for the #MainContentArea but I want the height to be adjusted dynamically. Can somebody