Fix compose body area size, so scrollbars aren't truncated, unify padding
| | |
| | | selector: '#' + ($('#' + id).is('.mce_editor') ? id : 'fake-editor-id'), |
| | | theme: 'modern', |
| | | language: config.lang, |
| | | content_css: 'program/js/tinymce/roundcube/content.css?v1', |
| | | content_css: 'program/js/tinymce/roundcube/content.css?v2', |
| | | menubar: false, |
| | | statusbar: false, |
| | | toolbar_items_size: 'small', |
| | |
| | | this.ignore = ignore; |
| | | this.hideLangWindow(); |
| | | |
| | | if ($(this.text_area).val() == '' || ignore) { |
| | | var area = $(this.text_area); |
| | | |
| | | if (area.val() == '' || ignore) { |
| | | if (!this.custom_no_spelling_error) |
| | | this.flashNoSpellingErrorState(); |
| | | else |
| | |
| | | return; |
| | | } |
| | | |
| | | this.createEditLayer(this.text_area.offsetWidth, this.text_area.offsetHeight); |
| | | this.createEditLayer(area.width(), area.height()); |
| | | this.createErrorWindow(); |
| | | $('body').append(this.error_window); |
| | | |
| | |
| | | if (this.main_controller) |
| | | $(this.spell_span).unbind('click'); |
| | | |
| | | this.orginal_text = $(this.text_area).val(); |
| | | this.orginal_text = area.val(); |
| | | }; |
| | | |
| | | this.parseResult = function(r_text) |
| | |
| | | { |
| | | this.edit_layer = document.createElement('div'); |
| | | $(this.edit_layer).addClass('googie_edit_layer').attr('id', 'googie_edit_layer') |
| | | .width('auto').height(height); |
| | | .width(width).height(height); |
| | | |
| | | if (this.text_area.nodeName.toLowerCase() != 'input' || $(this.text_area).val() == '') { |
| | | $(this.edit_layer).css('overflow', 'auto').height(height-4); |
| | | $(this.edit_layer).css('overflow', 'auto'); |
| | | } else { |
| | | $(this.edit_layer).css('overflow', 'hidden'); |
| | | } |
| | |
| | | |
| | | body { |
| | | background-color: #FFFFFF; |
| | | margin-left: 4px; |
| | | margin-right: 4px; |
| | | margin-top: 2px; |
| | | margin: 4px; |
| | | } |
| | | |
| | | div.pre { |
| | |
| | | resize_compose_body: function() |
| | | { |
| | | var div = $('#compose-div .boxlistcontent'), |
| | | w = div.width() - 2, h = div.height(), |
| | | w = div.width() - 6, |
| | | h = div.height() - 2, |
| | | x = bw.ie || bw.opera ? 4 : 0; |
| | | |
| | | $('#compose-body_ifr').width(w+3).height(h-2 - $('div.mce-toolbar').height()); |
| | | $('#compose-body_ifr').width(w + 6).height(h - 1 - $('div.mce-toolbar').height()); |
| | | $('#compose-body').width(w-x).height(h); |
| | | $('#googie_edit_layer').height(h); |
| | | $('#googie_edit_layer').width(w).height(h); |
| | | }, |
| | | |
| | | resize_compose_body_ev: function() |
| | |
| | | |
| | | .googie_edit_layer { |
| | | background-color: #ffffff; |
| | | padding: 0 4px; |
| | | padding: 1px 3px; |
| | | font-size: 9pt; |
| | | font-family: monospace; |
| | | } |
| | |
| | | } |
| | | |
| | | .googie_edit_layer { |
| | | position: relative; |
| | | top: 1px; |
| | | left: 1px; |
| | | padding: 8px; |
| | | padding: 4px; |
| | | font-size: 9pt; |
| | | font-family: monospace; |
| | | background-color: #fff; |
| | |
| | | width: 99%; |
| | | border: 0; |
| | | border-radius: 0 0 0 4px; |
| | | padding: 8px 0 8px 8px; |
| | | padding: 4px; |
| | | resize: none; |
| | | font-family: monospace; |
| | | font-size: 9pt; |
| | | outline: none; |
| | | box-shadow: inset 0 0 2px 1px rgba(0,0,0, 0.2); |
| | | -webkit-box-shadow: inset 0 0 2px 1px rgba(0,0,0, 0.2); |
| | | box-shadow: inset 0 0 2px 1px rgba(0,0,0, 0.1); |
| | | -webkit-box-shadow: inset 0 0 2px 1px rgba(0,0,0, 0.1); |
| | | } |
| | | |
| | | #composebody:active, |
| | |
| | | |
| | | $('#composebodycontainer > div').width(w+8); |
| | | $('#composebody_ifr').height(h + 4 - $('div.mce-toolbar').height()); |
| | | $('#googie_edit_layer').height(h - 8); |
| | | $('#googie_edit_layer').width(w).height(h); |
| | | // $('#composebodycontainer')[(btns ? 'addClass' : 'removeClass')]('buttons'); |
| | | // $('#composeformbuttons')[(btns ? 'show' : 'hide')](); |
| | | |