Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

Commit

Permalink
fixed bug of resizing 3D canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
prinsss committed Mar 27, 2016
1 parent 12e55bb commit 3547c1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/preview.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
* @Author: printempw
* @Date: 2016-03-27 09:43:57
* @Last Modified by: printempw
* @Last Modified time: 2016-03-27 09:46:57
* @Last Modified time: 2016-03-27 17:21:21
*/

'use strict';

var preview_type = "3d";

function init3dCanvas() {
if (preview_type == "2d") return;
if ($(window).width() < 800) {
var canvas = MSP.get3dSkinCanvas($('#skinpreview').width(), $('#skinpreview').width());
$("#skinpreview").append($(canvas).prop("id", "canvas3d"));
Expand Down

0 comments on commit 3547c1b

Please sign in to comment.