Changeset 3798 in subversion


Ignore:
Timestamp:
Jun 30, 2010 7:17:51 AM (3 years ago)
Author:
alec
Message:
  • googiespell layer resizing + small css improvements
  • better googiespell suggestions popup positioning
Location:
trunk/roundcubemail
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/js/googiespell.js

    r3789 r3798  
    112112        this.checkSpellingState(); 
    113113    } 
    114     else  
    115         if (this.report_ta_not_found) 
    116             alert('Text area not found'); 
     114    else if (this.report_ta_not_found) 
     115        alert('Text area not found'); 
    117116}; 
    118117 
     
    394393        list = document.createElement('tbody'); 
    395394 
    396     pos.top -= this.edit_layer.scrollTop; 
    397  
    398     $(this.error_window).css({'visibility': 'visible', 
    399         'top': (pos.top+20)+'px', 'left': (pos.left)+'px'}).html(''); 
    400  
     395    $(this.error_window).html(''); 
    401396    $(table).addClass('googie_list').attr('googie_action_btn', '1'); 
    402397 
     
    542537    this.error_window.appendChild(table); 
    543538 
     539    // calculate and set position 
     540    var height = $(this.error_window).height(), 
     541        width = $(this.error_window).width(), 
     542        pageheight = $(document).height(), 
     543        pagewidth = $(document).width(), 
     544        top = pos.top + height + 20 < pageheight ? pos.top + 20 : pos.top - height, 
     545        left = pos.left + width < pagewidth ? pos.left : pos.left - width; 
     546 
     547    $(this.error_window).css({'visibility': 'visible', 'top': top+'px', 'left': left+'px'}); 
     548 
    544549    // Dummy for IE - dropdown bug fix 
    545550    if ($.browser.msie) { 
     
    562567this.createEditLayer = function(width, height) { 
    563568    this.edit_layer = document.createElement('div'); 
    564     $(this.edit_layer).addClass('googie_edit_layer').width(width-10).height(height); 
     569    $(this.edit_layer).addClass('googie_edit_layer').attr('id', 'googie_edit_layer') 
     570        .width(width).height(height); 
    565571 
    566572    if (this.text_area.nodeName.toLowerCase() != 'input' || $(this.text_area).val() == '') { 
     
    622628 
    623629    $(elm).html(text).addClass('googie_link').bind('click', d) 
    624         .attr({'googie_action_btn' : '1', 'g_id' : id, 'is_corrected' : false}); 
     630            .attr({'googie_action_btn' : '1', 'g_id' : id, 'is_corrected' : false}); 
    625631 
    626632    return elm; 
     
    703709    this.language_window = document.createElement('div'); 
    704710    $(this.language_window).addClass('googie_window') 
    705         .width(100).attr('googie_action_btn', '1'); 
     711            .width(100).attr('googie_action_btn', '1'); 
    706712 
    707713    // Build up the result list 
  • trunk/roundcubemail/skins/default/functions.js

    r3793 r3798  
    345345    $('#compose-body_ifr').width((w+2)+'px').height((h-54)+'px'); 
    346346  } 
     347  else { 
     348    $('#googie_edit_layer').width(w-(bw.ie || bw.opera || bw.safari ? 2 : 0)+'px').height(h+'px'); 
     349  } 
    347350}, 
    348351 
  • trunk/roundcubemail/skins/default/googiespell.css

    r3393 r3798  
    1414 
    1515.googie_edit_layer { 
    16   border: 1px solid #666666; 
    1716  background-color: #ffffff; 
    18   padding: 1px 4px; 
    19   margin: 1px 0px; 
     17  padding: 0 4px; 
    2018  font-size: 9pt; 
    2119  font-family: monospace; 
     
    7674  text-decoration: underline; 
    7775  cursor: pointer; 
     76  font-size: 9pt; 
     77  font-family: monospace; 
    7878} 
    7979 
  • trunk/roundcubemail/skins/default/mail.css

    r3789 r3798  
    138138} 
    139139 
    140 #messagetoolbar select, 
    141 #compose-container select 
     140#messagetoolbar select 
    142141{ 
    143142  font-size: 11px; 
Note: See TracChangeset for help on using the changeset viewer.