Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When you enter a percentage for a width it takes it as pixels so 100% becomes 100 pixels.
The workaround was I added some JavaScript that reset the inline CSS to how I wanted it but of course that's not really a great solution.
I experienced this limitation on the Twitter and the FaceBook widgets. I haven't tried other widgets yet.
I'm not sure if this should be a bug report or a feature request however given that the widgets work perfectly fine with percentage widths as received from the vendor I'm initially setting this limitation as a bug.
Comments
Comment #1
Reg CreditAttribution: Reg commentedAny thoughts on this?
Comment #2
TomDude48 CreditAttribution: TomDude48 commentedThis pertains to the Social Media module. Moving to that queue.
Comment #3
TomDude48 CreditAttribution: TomDude48 commentedMoving to feature request. The the code works as intended right now.
Comment #4
Reg CreditAttribution: Reg commentedYeah it makes sense either way. If you give me a clue where the code is that controls this, like the function it's in then I'll have a crack and making a patch.
Comment #5
b-reid CreditAttribution: b-reid at LevelTen Interactive commentedI am closing this issue because this issue pertains to Widgets, and I also believe the Widgets module has this feature now.