From bf0caddcccd2879ddf3396397752c849fc4d049b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 24 Mar 2012 03:01:41 +0900 Subject: [PATCH] ensure field area surrounds floated images --- aqt/editor.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/aqt/editor.py b/aqt/editor.py index a8e05caaf..97efc5ede 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -28,6 +28,13 @@ _html = """ .field { border: 1px solid #aaa; background:#fff; color:#000; padding: 5px; } +.field:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; +} .fname { font-size: 12px; vertical-align: middle; padding: 0; } #dupes { font-size: 12px; } img { max-width: 150; max-height: 150; } @@ -156,6 +163,9 @@ function setFields(fields, focusTo) { for (var i=0; i