Commit ebe67cc2 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Добавил в AscBrowser параметр isMobileVersion.

Убрал g_isMobileVersion. Убрал initContextSmoothing

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57717 954022d7-b5bf-4e40-9824-e11837661b57
parent 1636d377
......@@ -8,6 +8,7 @@ var AscBrowser = {
isAppleDevices : false,
isAndroid : false,
isMobile : false,
isMobileVersion : false,
isGecko : false,
isChrome : false,
isOpera : false,
......
......@@ -15,7 +15,6 @@
//<![CDATA[
window.g_debug_mode = false;
//window.g_debug_mode = true;
//window.g_isMobileVersion = true;
//]]>
</script>
......
......@@ -31,7 +31,6 @@
window.g_debug_mode = false;
window.g_offline_doc = "../Excel/document/";
//window.g_debug_mode = true;
//window.g_isMobileVersion = true;
//]]>
</script>
......
......@@ -404,7 +404,7 @@
//------API---------
var api = new Asc.spreadsheet_api("wb-widget", null);
api.isMobileVersion = true;
api.asc_setMobileVersion(true);
api.asc_setViewerMode(true);
api.asc_registerCallback("asc_onStartAction", onStartAction);
api.asc_registerCallback("asc_onEndAction", onEndAction);
......
......@@ -682,7 +682,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.options = (this.options || {});
this.options.worksheetDefaults = (this.options.worksheetDefaults || {});
this.options.worksheetDefaults.isMobile = isMobile;
window.g_isMobileVersion = isMobile;
AscBrowser.isMobileVersion = isMobile;
},
asc_getViewerMode: function () {
......
......@@ -480,7 +480,7 @@
if (null == canvas) {return;}
this.canvas = canvas;
this.ctx = this.canvas.getContext("2d");
this.initContextSmoothing();
//this.initContextSmoothing();
};
/**
......@@ -629,9 +629,9 @@
/**
* Delete smoothing
*/
DrawingContext.prototype.initContextSmoothing = function () {
/*DrawingContext.prototype.initContextSmoothing = function () {
var ctx = this.ctx;
if (!window.g_isMobileVersion || null === ctx)
if (!AscBrowser.isMobileVersion || null === ctx)
return;
// Не убирать. Баг на android при scroll!!!
......@@ -643,7 +643,7 @@
ctx.oImageSmoothingEnabled = false;
if (ctx.webkitImageSmoothingEnabled)
ctx.webkitImageSmoothingEnabled = false;
};
};*/
// Canvas methods
......@@ -927,7 +927,7 @@
var _g = this.fillColor.g;
var _b = this.fillColor.b;
if (window.g_isMobileVersion) {
if (AscBrowser.isMobileVersion) {
// Special for iPad (5.1)
if (!_r && !_g && !_b) {
......
......@@ -213,7 +213,7 @@
if (!found) {doc.body.appendChild(t.element);}
//fix for ipad
if( !window.g_isMobileVersion)
if(AscBrowser.isMobileVersion)
{
var foundText = true;
......
......@@ -1365,8 +1365,8 @@
// При смене ориентации у планшета, сбрасываются флаги у canvas!
// ToDo перепроверить на новых исходниках, должно поправиться, был баг в отрисовке!!!!!!!!!!!!!
this.drawingCtx.initContextSmoothing();
this.overlayCtx.initContextSmoothing();
//this.drawingCtx.initContextSmoothing();
//this.overlayCtx.initContextSmoothing();
return true;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment