[fusion-trac] #358: style.iconOpt.width is undefinded (r1936 )

Fusion trac_fusion at osgeo.org
Thu Jan 28 08:24:04 EST 2010


#358: style.iconOpt.width is undefinded (r1936 )
-------------------------+--------------------------------------------------
   Reporter:  pcardinal  |       Owner:  pagameba  
       Type:  defect     |      Status:  new       
   Priority:  P2         |   Milestone:  Future    
  Component:  Widgets    |     Version:  2.0 - beta
   Severity:  Major      |    Keywords:            
External_id:             |       State:  New       
    Browser:  All        |          Os:  Windows   
-------------------------+--------------------------------------------------
 With MapGuide Open Source, the following new code in Legend.js should be
 revised because the code crash when style.iconOpt.width is undefinded.


         if (style && style.iconX >= 0 && style.iconY >= 0) {
             item.domImg;
             item.domImg.style.backgroundImage = 'url('+opt.image+')';
             item.domImg.src = Jx.aPixel.src;
             item.domImg.style.backgroundPosition = (-1*style.iconX) + 'px
 ' + (-1*style.iconY) + 'px';
             if (style.iconOpt.width) {
                 item.domImg.style.width = style.iconOpt.width + 'px';
             }
             if (style.iconOpt.height) {
                 item.domImg.style.height = style.iconOpt.height + 'px';
             }
         }

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/358>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list