You are here: Foswiki>Tasks Web>Item996 (15 Feb 2009, ArthurClemens)Edit Attach

Item996: When title is empty ( hint ) empty <p></p> breaks layout in IE

pencil
Priority: Normal
Current State: No Action Required
Released In:
Target Release:
Applies To: Extension
Component: FormPlugin
Branches:
When you don't enter a hint for a element ( mostly checkboxes ) the default format prints <p></p> at the place where they should be displayed. This works for the FF because it kindly ignores them and does not display them as normal p`s.

Nevertheless IE is displaying a full pagebreak. That way the IE and FF layout looks completely different and broken.

Proposal

Dont print <p></p> if $t is empty

Sideeffects

The form-steps will be shown closely to eachother in the FF if the <p></p> are removed. It seems like empty p is shown like a line with a small line-height. To fix this, we need to set a proper padding-top on the formStep css class. Then IE and FF look the same

ItemTemplate edit

Summary When title is empty ( hint ) empty <p></p> breaks layout in IE
ReportedBy Foswiki:Main.EugenMayer
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component FormPlugin
Priority Normal
CurrentState No Action Required
WaitingFor Foswiki:Main.ArthurClemens, Foswiki:Main.SvenDowideit, Foswiki:Main.EugenMayer
Checkins
ReleasedIn
Topic revision: r3 - 15 Feb 2009, ArthurClemens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy