?
avatar N6REJ
N6REJ
20 Feb 2016

Steps to reproduce the issue

Create a "repeatable" form field.
create a field containing the "size="8"

Expected result

input box will be 8 chars wide

Actual result

input box is some magical width

System information (as much as possible)

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>

result:
image

Additional comments

avatar N6REJ N6REJ - open - 20 Feb 2016
avatar brianteeman
brianteeman - comment - 20 Feb 2016

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.

avatar brianteeman
brianteeman - comment - 21 Feb 2016

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.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9182.

avatar brianteeman brianteeman - close - 21 Feb 2016
avatar brianteeman brianteeman - change - 21 Feb 2016
Status New Expected Behaviour
Closed_Date 0000-00-00 00:00:00 2016-02-21 12:01:06
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 21 Feb 2016

I am closing this as expected behaviour


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9182.

avatar brianteeman brianteeman - close - 21 Feb 2016
avatar brianteeman brianteeman - close - 21 Feb 2016
avatar N6REJ
N6REJ - comment - 21 Feb 2016

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

avatar mbabker
mbabker - comment - 21 Feb 2016

CSS rules can affect the width of elements and make attributes like this not work as intended.

avatar brianteeman
brianteeman - comment - 21 Feb 2016

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/

avatar N6REJ
N6REJ - comment - 22 Feb 2016

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 GitHub

#9182 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/


Reply to this email directly or view it on GitHub
#9182 (comment).

avatar brianteeman brianteeman - change - 8 Mar 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment