Opened 12 years ago

Closed 12 years ago

#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: Browser: All
External ID: Operating System: Windows
state: New

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 (2)

comment:1 by madair, 12 years ago

Milestone: Future2.0
Owner: changed from pagameba to madair
Status: newassigned

comment:2 by madair, 12 years ago

Resolution: fixed
Status: assignedclosed

current trunk code has checks to see if these values are defined so I am assuming this is fixed. Re-open if not.

Note: See TracTickets for help on using tickets.