Ticket #1475 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

Set the imageSrc before the supper class initialzed in FramedCloud popup

Reported by: avlee Owned by: euzuro
Priority: major Milestone: 2.6 Release
Component: Popup Version: SVN
Keywords: Cc:
State: Complete

Description

In current trunk, should set the imageSrc before the supper class initialzed in FramedCloud popup.

Attachments

FramedCloud_1475.patch Download (0.9 KB) - added by avlee 5 years ago.
FramedCloud_1475.2.patch Download (0.6 KB) - added by ahocevar 5 years ago.
modified patch. imageSrc is already defined as property in Popup.Framed
FramedCloud_1475.3.patch Download (0.9 KB) - added by ahocevar 5 years ago.
That's the patch that finally made it into trunk (can be used for pullup to 2.6)

Change History

Changed 5 years ago by avlee

Changed 5 years ago by elemoine

  • priority changed from minor to major
  • state set to Review

avlee's patch seems valid to me, but I'd like to get another opinion before we commit it into trunk

Thanks avalee

Changed 5 years ago by ahocevar

  • state changed from Review to Needs More Work

Not sure about this patch. I think that this.imageSrc should be set in Popup.Framed. Looks to me as this assignment is entirely missing there.

Changed 5 years ago by ahocevar

  • state changed from Needs More Work to Commit
	<elemoine>	ahocevar: what value would you give to imageSrc in Framed?
	<ahocevar>	elemoine: first, I have to admit that this is the first time for me looking into the new popup code.
	<elemoine>	ahocevar: same here ;-)
	<ahocevar>	But the way it is done now would only make sense if Popup.Framed is some kind of abstract class, which I don't know if it is.
	<elemoine>	I'm wondering if Popup.Framed is something people can use or just an abstract class
	<elemoine>	agreed
	<ahocevar>	so let's assume it is an abstract class.
	<ahocevar>	In that case, avlee's patch should at least not do any harm.
	<ahocevar>	(in every other case neither, but then something else might be wrong)
	<elemoine>	yep
	<elemoine>	it's even a good fix AFAICT
	<elemoine>	right now, imageSrc isn't taken into account when the Framed class constructor is called
	<elemoine>	which doesn't look correct
	<ahocevar>	yes. so the patch seems to be good.
	<ahocevar>	I don't see anything wrong about it.
	<elemoine>	me neither
	<elemoine>	I think the patch fixes the case when fixedRelativePosition is true (which isn't the default)
	<elemoine>	when fixedRelativePosition is false, Framed.createBlocks (which uses imageSrc) isn't called in the constructor but when setSize is called}}}
The patch looks good. Only one thing to mention: If Popup.Framed is not supposed to be an abstract class, then something might be wrong there (probably unrelated to this ticket).

Changed 5 years ago by ahocevar

Sorry for the bad formatting in the above comment. Here's the one important bottom line again:

The patch looks good. Only one thing to mention: If Popup.Framed is not supposed to be an abstract class, then something might be wrong there (probably unrelated to this ticket).

Changed 5 years ago by ahocevar

modified patch. imageSrc is already defined as property in Popup.Framed

Changed 5 years ago by ahocevar

  • status changed from new to closed
  • state changed from Commit to Complete
  • resolution set to fixed

(In [6750]) Set the imageSrc bevore the super class is initialized in Popup.FramedCloud. Thanks avlee. r=elemeoine,me (closes #1475)

Changed 5 years ago by ahocevar

  • status changed from closed to reopened
  • resolution fixed deleted

Changed 5 years ago by ahocevar

Is this good to pullup?

Changed 5 years ago by ahocevar

(In [6751]) now also committed the removal of the imageSrc property definition in Popup.FramedCloud. avlee's original patch is perfectly sane. Sorry for the confusion. Thanks elemoine for the hint. (references #1475)

Changed 5 years ago by ahocevar

That's the patch that finally made it into trunk (can be used for pullup to 2.6)

Changed 5 years ago by crschmidt

  • status changed from reopened to closed
  • resolution set to fixed

(In [6752]) avlee, elemoine, and ahocevar point out that we should change the initialization of the imageSrc property to be *before* we call the superclass. This pullup (Closes #1475), and is the last thing I'm going to touch before the 2.6 release. svn merge -r6749:6751 trunk branch.

Note: See TracTickets for help on using tickets.