CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

StylerRnderOptions Issue on innerEdit

by Joelzim » 14 Oct 2018 02:16

Can you please remove the width:100%;height:100%; on the innerEdit when the StyleRenderOptions.RenderSize := false?

Here is an example of my code

(aObject as TIWCGJQEdit).InnerEdit.StyleRenderOptions.RenderSize := False;
(aObject as TIWCGJQEdit).InnerEdit.StyleRenderOptions.RenderPosition := False;
(aObject as TIWCGJQEdit).InnerEdit.StyleRenderOptions.RenderFont := False;
(aObject as TIWCGJQEdit).InnerEdit.StyleRenderOptions.RenderZIndex := False;
(aObject as TIWCGJQEdit).InnerEdit.StyleRenderOptions.RenderStatus := False;
(aObject as TIWCGJQEdit).InnerEdit.StyleRenderOptions.RenderAbsolute := False;
(aObject as TIWCGJQEdit).InnerEdit.StyleRenderOptions.RenderPadding := False;
(aObject as TIWCGJQEdit).InnerEdit.StyleRenderOptions.RenderBorder := False;

here is the resulting html

<div id="EPASSWORD" style=""><div>
<input autocomplete="off" class="cgdevtools-input " id="EPASSWORDINNER" maxlength="2147483647" name="EPASSWORDINNER" style="text-align: left;padding:0;width:100%;height:100%;" tabindex="9" type="password"></div></div>

I need the result to be

<div id="EPASSWORD" style=""><div>
<input autocomplete="off" class="cgdevtools-input " id="EPASSWORDINNER" maxlength="2147483647" name="EPASSWORDINNER" style="text-align: left;padding:0;" tabindex="9" type="password"></div></div>

Thanks

I am using iw 14 and cg 4.1.0.50
Joelzim
 
Posts: 31
Joined: 29 Jul 2017 06:17

by Alexander Bulei » 18 Oct 2018 09:10

Hi Joelzim,

You can override the style by using the InputStyle property.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQEdit

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.