Problem with cropper ui 1.2...

Discussion in 'Programming' started by Sleeping Troll, Sep 14, 2008.

  1. #1
    When i click on page outside of 'EditImage' the crop is updated to a box with the dimensions of ratioDim:, What might I be doing wrong? here is my initialization.

    function InitCrop()
    	{
    		new Cropper.Img(
    			'EditImage',
    			{
    				ratioDim: {
    					x: <?php echo $PosWidth; ?>,
    					y: <?php echo $PosHeight; ?>
    				},
    				displayOnInit: false,
    				onEndCrop: onEndCrop
    			}
    		);
    	}
    Code (markup):
     
    Sleeping Troll, Sep 14, 2008 IP