Ticket #239: custom-button-sizes.patch

File custom-button-sizes.patch, 908 bytes (added by pabs, 15 years ago)

custom button size patch

  • htmlarea.css

    diff -Naur xinha-latest/htmlarea.css xinha/htmlarea.css
    old new  
    1717  border: 1px solid ButtonFace; 
    1818  padding: 1px; 
    1919  margin: 0px; 
    20   width: 18px; 
    21   height: 18px; 
     20/*  width: 18px; 
     21  height: 18px; */ 
    2222} 
    2323.htmlarea .toolbar a.button:hover { 
    2424  border: 1px solid; 
  • htmlarea.js

    diff -Naur xinha-latest/htmlarea.js xinha/htmlarea.js
    old new  
    803803      if(typeof btn[1] == 'string') 
    804804      { 
    805805        img.src = btn[1]; 
    806         img.style.width = "18px"; 
    807         img.style.height = "18px"; 
     806        img.style.width = ""; 
     807        img.style.height = ""; 
     808        i_contain.style.width = ""; 
     809        i_contain.style.height = ""; 
    808810      } 
    809811      else 
    810812      {