1. #11
    Sencha Premium Member
    Join Date
    Jun 2008
    Posts
    322
    Vote Rating
    4
    Scorpie is on a distinguished road

      0  

    Default


    Nice, but the window with the image changes size, can you make it dynamic, so you can choose wether or not to autosize to the image or keep a fixed width&height, e.g a sort of image view?
    I`m from Holland!

  2. #12
    Sencha User fangzhouxing's Avatar
    Join Date
    Mar 2007
    Posts
    468
    Vote Rating
    1
    fangzhouxing is on a distinguished road

      0  

    Default


    I changed following code:
    Code:
    		f (Ext.isGecko) {													
    			win.body.dom.src = rec.data.url;
    			win.setSize(win.body.dom.width, win.body.dom.height);
    			win.center();
    		}else{																
    			if (win) {
    				win.destroy();
    			}
    			showWindow();
    		}
    to :
    Code:
    			win.body.dom.src = rec.data.url;
    			win.setSize(win.body.dom.width, win.body.dom.height);
    			win.center();
    and it works in IE7 and IE6!

  3. #13
    Ext User
    Join Date
    May 2010
    Posts
    19
    Vote Rating
    0
    rishi89 is on a distinguished road

      0  

    Default


    How do I integrate this with the rest of my PHP code ?