Create a "repeatable" form field.
create a field containing the "size="8"
input box will be 8 chars wide
input box is some magical width
sample code...
<field name="googleFonts"
type="Repeatable"
icon="list"
label="TPL_SERENITY_FONT_SELECTOR"
default='{
"Elements":["body","H1","H2","H3","H4","H5","H6","p","a","i","ul","li"],
"Font":["Helvetica","Royal"],
"Css":["16px"],
"Size":["blah"]
}'>
<fieldset hidden="true" name="googleFonts_modal" repeat="true">
<field name="Elements"
label="TPL_SERENITY_FONT_ELEMENTS_LABEL"
rows="2"
cols="1"
filter="html"
type="textarea" />
<field name="Font"
label="TPL_SERENITY_FONT_"
size="6"
type="text"
filter="raw"
/>
<field name="Css"
label="TPL_SERENITY_FONT_CSS_LABEL"
type="text"
filter="raw"
/>
<field name="Size"
label="TPL_SERENITY_FONT_SIZE_LABEL"
size="8"
type="text" />
</fieldset>
</field>
Double checked now that I am at a PC. It is nothing to do with it being a repeatable field. The same is true for all fields and as I suspected it is because of bootstrap. If you use a non-bootstrap admin template (eg hathor) then you will see that the size=8 is honoured.
Status | New | ⇒ | Expected Behaviour |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-02-21 12:01:06 |
Closed_By | ⇒ | brianteeman |
I am closing this as expected behaviour
brian did you verify thats true in hathor? and if it is true in BS then why do we have it since bs is our default template? I would expect the size to be changed to reflect the sizing... this really should not be difficult
CSS rules can affect the width of elements and make attributes like this not work as intended.
yes i verified it in hathor
On 21 February 2016 at 21:49, Michael Babker notifications@github.com
wrote:
CSS rules can affect the width of elements and make attributes like this
not work as intended.—
Reply to this email directly or view it on GitHub
#9182 (comment).
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
ok guys... tyvm... appreciate the info.. sorry for the false alarm.
Bear
On 2/21/2016 15:58, Brian Teeman wrote:
yes i verified it in hathor
On 21 February 2016 at 21:49, Michael Babker notifications@github.com
wrote:CSS rules can affect the width of elements and make attributes like this
not work as intended.—
Reply to this email directly or view it on GitHubBrian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/—
Reply to this email directly or view it on GitHub
#9182 (comment).
Labels |
Added:
?
|
Off the top of the head it is not 8 characters wide because of the default bootstrap styling
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9182.