width

<button> padding / width problem

孤者浪人 提交于 2019-12-30 04:31:26
问题 I'm using <button> to make a post request in a form. I also styled a a.button exactly like the <button> (I need the a.button to make some JS stuff). The button has some padding, a fixed height. When I do specify the width of the button / a they both look the same. But when I add width to the <button> it ignores the padding. I'm having this problem in Chrome, Firefox and Opera, so I guess it's not a rendering fault. Also same issue with <input type="submit" /> Here is the basic CSS: .button,

WPF DataGrid Sync Column Widths

送分小仙女□ 提交于 2019-12-30 01:06:18
问题 I've got two WPF Toolkit DataGrids , I'd like so that when the user resizes the first column in the first grid, it resizes the first column in the second grid. I've tried binding the width of the DataGridColumn in the second grid to the appropriate column in the first grid, but it doesn't work. I'd prefer to use all xaml, but I'm fine with using code behind as well. <tk:DataGrid Width="100" Height="100"> <tk:DataGrid.Columns> <tk:DataGridTextColumn x:Name="Column1" Width="50"/> </tk:DataGrid

content view width and height

天涯浪子 提交于 2019-12-29 09:05:46
问题 I am using below steps to know the width and height of contentview on my display screen ContentViewWidth = getWindow().findViewById(Window.ID_ANDROID_CONTENT).getWidth(); ContentViewHeight = getWindow().findViewById(Window.ID_ANDROID_CONTENT).getHeight(); but this method doesn't work inside onCreate or onResume and if I am using these steps inside onWindowFocusChanged I get force close error on my phone Please help me how can I get the content view of my display screen. Content view is

content view width and height

只谈情不闲聊 提交于 2019-12-29 09:05:17
问题 I am using below steps to know the width and height of contentview on my display screen ContentViewWidth = getWindow().findViewById(Window.ID_ANDROID_CONTENT).getWidth(); ContentViewHeight = getWindow().findViewById(Window.ID_ANDROID_CONTENT).getHeight(); but this method doesn't work inside onCreate or onResume and if I am using these steps inside onWindowFocusChanged I get force close error on my phone Please help me how can I get the content view of my display screen. Content view is

How to find the actual width of grid component with scrollbar in Delphi

元气小坏坏 提交于 2019-12-29 08:08:10
问题 I have a grid component (DBGrid) which has lots of columns on it. Because of large number of columns, a scrollbar was created, and thus some part of grid remains hidden. I need to find out what is the real width of DBGrid, including the part which is not shown due to scroll bar. But Width property gives only the width of the component itself. Anybody has any idea? 回答1: Perhaps this may be helpful. It is part of a class helper for TDBGrid that auto sizes the last column, so that the grid has

How I obtain bars with function bar3 and different widths for each bar?

為{幸葍}努か 提交于 2019-12-29 06:47:29
问题 I have the code: values = [1.0 0.6 0.1; 0.0 1.0 0.3; 0.9 0.4 1.0]; h = bar3(values); shading interp for i = 1:length(h) % Get the ZData matrix of the current group zdata = get(h(i),'Zdata'); set(h(i),'Cdata',zdata) end set(h,'EdgeColor','k') view(-61, 68); colormap cool colorbar And this is what the figure looks like: I want to obtain different widths for each bar dependent on the height of the bar. What I want looks like a picture in http://www.sdtools.com/help/ii_mac.html. blah http://www

Make div inside parent 100% width of body, not parent div

随声附和 提交于 2019-12-29 05:13:10
问题 I want to make my inner div 100% width of the body, not 100% of the parent div. Is this possible? The layout looks like this: <body> <div> /** Width:900px; **/ <div> /** This I want 100% of BODY, not of parent div **/ </div> </div> </body> 回答1: i hope you are looking like this........... see the DEMO UPDATED DEMO 2 AS PER YOUR CURRENT REQUIREMENTS CSS .parent { background:red; width:900px; margin:0 auto; padding:10px; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; box-sizing

Pure CSS Solution - Square Elements? [duplicate]

∥☆過路亽.° 提交于 2019-12-29 04:16:25
问题 This question already has answers here : Maintain the aspect ratio of a div with CSS (23 answers) Closed 4 years ago . If I have a <div> with a relative width (such as width: 50% ), is there a simple way to make it have the same width as it does height without resorting to JavaScript? 回答1: It is actually possible to achieve it with this neat trick i found at this blog #square { width: 100%; height: 0; padding-bottom: 100%; } Hope that helps 回答2: No, and Yes (Kinda) Okay, so the short answer

screen.width + android

荒凉一梦 提交于 2019-12-28 13:57:09
问题 If I trace out the screen.width with my DroidX native browser, I first receive 320 as expected, but on subsequent reloads (without changing orientation) I receive 800... why is this? 回答1: It is an Android bug. Sometimes when page first loads the window.screen.width and window.screen.height are wrong. You can try to make a timeout and then run your code. setTimeout(YourFunction, 200); Also see here android issue 来源: https://stackoverflow.com/questions/5021090/screen-width-android

Change New Google Recaptcha (v2) Width

ε祈祈猫儿з 提交于 2019-12-28 04:51:05
问题 We've just started to implement the new google recaptcha as listed https://www.google.com/recaptcha/intro/index.html However the new method seems to be contained within an iFrame rather than embedded into the page thus making applying CSS more difficult. However we've got our form which is 400px wide so would like to have the recaptcha the same width. Currently it looks like, however we'd like it the same with as the rest. Does anybody know how to do this yet? Thanks 回答1: Here is a work