Ticket #358 (closed defect: fixed)
style.iconOpt.width is undefinded (r1936 )
| Reported by: | pcardinal | Owned by: | madair |
|---|---|---|---|
| Priority: | P2 | Milestone: | 2.0 |
| Component: | Widgets | Version: | 2.0 - beta |
| Severity: | Major | Keywords: | |
| Cc: | External ID: | ||
| state: | New | Browser: | All |
| Operating System: | Windows |
Description
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';
}
}
Change History
Note: See
TracTickets for help on using
tickets.
