Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2585
100% Width
posted

We are setting a editor to be 100% width via css due to the known issue below. Which works but the "edit field" does not get 100% width and therefore you can only touch a portion of the control to get it to focus. When you set the 2nd line to 100% then when you type in the field the text does not appear on the screen. Since we are using the ASP.NET MVC wrappers to build the control it is being wrapped in a span. What is the best way to get this control to function properly with 100% width via css since you cannot pass "100%" to the width property of the MVC Wrapper??

.ui-ig-edit {width: 100% !important; height:25px;}

.ui-ig-edit > .ui-igedit-field {width: auto !important; text-align:left !important;}

This is from the known issues:

Width and height options can be set only absolutely (in pixels) under certain conditions

If the editor’s base element is not an <input> or <textarea> element and buttons, theme, or renderInContainer options are enabled, then the width and height options can be set only absolutely (in pixels).

Workaround

If the editor is rendered as an <input> or <textarea> element without a <span> element wrapper, then the width and height can be set to a string with percent and other HTML units.
Parents Reply Children