Create image map don't show img correctly.

Last post 11-28-2013, 8:29 AM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  10-24-2013, 7:08 AM 78190

    Create image map don't show img correctly.

    Hi


    Create image map don't show img correctly on scaled image.

    How to reproduce.


    1. On demo page. Remove all content.
    2. Add image Sample_Picture01.jpg to page
    3. Resize image to  250*164
    4. Right click image an select Create image map
    5. As you can see the image in the dialog have the right size but is not scaled.

     

    // Kent

  •  10-24-2013, 1:26 PM 78196 in reply to 78190

    Re: Create image map don't show img correctly.

    Hi KentM,

     

    Yes, I can reproduce this issue too, I will report it to the development team, once issue is fix I will keep you posted.

     

    Regards,

     

    Ken 

  •  11-27-2013, 10:50 AM 78454 in reply to 78196

    Re: Create image map don't show img correctly.

    Hi 

    I made my own fix for this problem. 
     
    in file \richtexteditor\dialogs\insertimagemap.xml after line 201 add 

                if(w)self._content.width = w;

                if(h)self._content.height = h;

    so the initialize function on areapanel looks like 

                self.set_src(option.targetimg.GetAttribute("src"));

                var w=parseInt(option.targetimg.GetStyle("width"));

                var h=parseInt(option.targetimg.GetStyle("height"));

                //document.title=[w,h];

                if(w)self.set_width(w);

                if(h)self.set_height(h);

                if(w||h)self.set_overflow("none");

                if(w)self._content.width = w;

                if(h)self._content.height = h;

    // kent

  •  11-28-2013, 8:29 AM 78458 in reply to 78454

    Re: Create image map don't show img correctly.

    Hi KentM,

     

    Thanks for share the info.

     

    Regards,

     

    Ken 

View as RSS news feed in XML