diff options
-rw-r--r-- | inc/toolbar.php | 1 | ||||
-rw-r--r-- | lib/scripts/edit.js | 5 | ||||
-rw-r--r-- | lib/tpl/default/design.css | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/inc/toolbar.php b/inc/toolbar.php index 4eb603707..7f2fe468d 100644 --- a/inc/toolbar.php +++ b/inc/toolbar.php @@ -100,6 +100,7 @@ function toolbar_JSdefines($varname){ 'type' => 'picker', 'title' => $lang['qb_hs'], 'icon' => 'h.png', + 'class' => 'pk_hl', 'list' => array( array( 'type' => 'format', diff --git a/lib/scripts/edit.js b/lib/scripts/edit.js index 215e647b5..acf612217 100644 --- a/lib/scripts/edit.js +++ b/lib/scripts/edit.js @@ -61,7 +61,10 @@ function createPicker(id,props,edid){ // create the wrapping div var picker = document.createElement('div'); - picker.className = 'picker '+props['class']; + picker.className = 'picker'; + if(props['class']){ + picker.className += ' '+props['class']; + } picker.id = id; picker.style.position = 'absolute'; picker.style.display = 'none'; diff --git a/lib/tpl/default/design.css b/lib/tpl/default/design.css index c3591fc67..b7c18baf8 100644 --- a/lib/tpl/default/design.css +++ b/lib/tpl/default/design.css @@ -797,6 +797,10 @@ div.picker { background-color: __background_alt__; } +div.pk_hl { + width: 125px; +} + button.pickerbutton { padding: 0px; margin: 0 1px 1px 0; |