Changeset 222 for trunk


Ignore:
Timestamp:
06/06/05 09:40:10 (15 years ago)
Author:
gocher
Message:

sorry this part I deleted in changeset 217 is used by context menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r221 r222  
    907907      }); 
    908908       
    909       var img = HTMLArea.makeBtnImg(btn[1]); 
    910       var imgholder = document.createElement("div"); 
    911       imgholder.className = "buttonImageContainer"; 
    912       imgholder.appendChild(img); 
    913       el.appendChild(imgholder); 
    914        
     909      var i_contain = HTMLArea.makeBtnImg(btn[1]); 
     910      var img = i_contain.firstChild; 
     911      el.appendChild(i_contain); 
     912 
    915913      obj.imgel = img; 
    916914      obj.swapImage = function(newimg) 
     
    10231021    doc._htmlareaImgCache = { }; 
    10241022  } 
     1023   
     1024  var i_contain = doc.createElement('div');   
     1025  i_contain.className    = 'buttonImageContainer'; 
     1026  i_contain.style.position = 'relative';   
     1027  i_contain.style.overflow = 'hidden';   
     1028  i_contain.style.width = "18px";   
     1029  i_contain.style.height = "18px";   
     1030   
    10251031  var img = null; 
    10261032  if(typeof imgDef == 'string') 
     
    10571063    img.style.left = imgDef[1] ? ('-' + (18 * (imgDef[1] + 1)) + 'px') : '-18px'; 
    10581064  } 
    1059   return img; 
     1065  i_contain.appendChild(img); 
     1066  return i_contain; 
    10601067} 
    10611068 
Note: See TracChangeset for help on using the changeset viewer.