width

Changing width filter inputbox primefaces datatable

自古美人都是妖i 提交于 2020-01-14 08:08:09
问题 Hi how do i apply the ccs style for the filter inputbox in a primefaces datatable, trying to use filterstyle this way: <p:column styleClass="placaColumna" filterStyle="width=16px" headerText="Placa" filterBy="# {bandeja.placa}"><h:outputText value ="#{bandeja.placa}"/></p:column> thanks :D 回答1: Your inline style CSS syntax is incorrect. It should be like this. filterStyle="width: 16px;" 回答2: You can also use an CSS class with the option filterStyleClass Don't forget to use !important in your

Is there a way to adjust the width of UITabBar button items to fit more than 5 buttons on the screen?

烂漫一生 提交于 2020-01-13 13:06:02
问题 My buttons seem stretched, especially in landscape orientation. I can't find a property to adjust either on the UITabBar, UITabBarViewController, or on the UITabBarItem's themselves. (Of course, one answer would be to get an iPad...but that doesn't solve the need for a phone.) For example, consider this simple Tab Bar Example - if I only could set the tab bar to auto-shrink as more buttons are added, or manually adjust the width to fit them all on the tab bar, I would be happy. 回答1: It is not

Is there a way to adjust the width of UITabBar button items to fit more than 5 buttons on the screen?

╄→гoц情女王★ 提交于 2020-01-13 13:05:10
问题 My buttons seem stretched, especially in landscape orientation. I can't find a property to adjust either on the UITabBar, UITabBarViewController, or on the UITabBarItem's themselves. (Of course, one answer would be to get an iPad...but that doesn't solve the need for a phone.) For example, consider this simple Tab Bar Example - if I only could set the tab bar to auto-shrink as more buttons are added, or manually adjust the width to fit them all on the tab bar, I would be happy. 回答1: It is not

div width 100 percent not working in mobile browser

岁酱吖の 提交于 2020-01-12 14:08:49
问题 I am trying to do something that, I thought, was very simple. The header of a website I am building is a solid color that needs to span the entire width of the screen regardless of which browser it is veiwed in. What I have created so far works wonderful on desktops and laptops, but when I test it on a tablet or a mobile phone, the header does not span all the way to the right. The content inside of the header does span all the way however, which is really confusing to me. The only way I can

Android EditText in AlertDialog seems too wide

风流意气都作罢 提交于 2020-01-12 06:51:05
问题 It seems like the EditText in the image below is too wide. I assume that I have misused the SDK in some way and until convinced otherwise I am not looking for a way to specify some number of margin/padding pixels on the sides of the EditText . This one looks more appropriate. Here's my code (that creates the first, 'Create Tag', dialog): final Dao<Tag, Integer> tagDao = getHelper().getTagDao(); final EditText input = new EditText(this); input.setSingleLine(true); input.setHint(R.string.create

Override css width

自作多情 提交于 2020-01-11 11:25:30
问题 How can I override a css width so that a competing width HTML attribute defines the computed size? The following example is rendered with a width of 500px, but I want 100px. Assume that the css rule cannot be changed - just masked by a stronger rule. Edit for clarification: I don't want to set an explicit size inline or somewhere else. img { width: auto; } <img src="http://placekitten.com/500/500" width="100px"> 回答1: You can use inline style to set width img { width: auto; } <img src="http:/

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

↘锁芯ラ 提交于 2020-01-11 09:44:29
问题 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? 回答1: 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

Why does percentage width work even if no explicit width value given for containing block?

不羁的心 提交于 2020-01-11 06:22:34
问题 According to specifications for height the element's containing box needs to have an explicit height in order for percentage height to work on the element (i.e. a numerical value of 100% height used on all parent containing boxes). However why do the same rules not seem to apply for percentage width s? When I set a percentage width on an element with a containing box that has no explicit width , it still seems to change the width of the element. (see example) .first { background-color: teal;

How to obtain form's inner width and height

余生颓废 提交于 2020-01-10 17:44:08
问题 As per title. I am writing a program that all components can adjust size automatically by form's size. When I using this.Width and this.Height properties, its return value is the width and height of whole form (red frame). How to get the form's width and height of its inner area (green frame)? 回答1: Use this.ClientSize.Width and this.ClientSize.Height . http://msdn.microsoft.com/en-us/library/9278sfx2(v=vs.110).aspx 回答2: Yes, You can check by this.ClientSize.Width and this.ClientSize.Height.

Tab not taking full width on Tablet device [Using android.support.design.widget.TabLayout]

蹲街弑〆低调 提交于 2020-01-08 18:20:15
问题 I have setup tabs as UPDATE 29/05/2015 this post. Tabs take full width on my Nexus 4 mobile but on nexus 7 tablet it in center and not cover full screen width. Nexus 7 screenshot Nexus 4 screenshot 回答1: A "simpler" answer borrowed from Kaizie would just be adding app:tabMaxWidth="0dp" in your TabLayout xml: <android.support.design.widget.TabLayout android:layout_width="match_parent" android:layout_height="wrap_content" app:tabMaxWidth="0dp" app:tabGravity="fill" app:tabMode="fixed" /> 回答2: I