PHP Classes

File: public/js/tinymce/src/themes/inlite/src/main/js/alien/UiContainer.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/inlite/src/main/js/alien/UiContainer.js   Download  
File: public/js/tinymce/src/themes/inlite/src/main/js/alien/UiContainer.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 970 bytes
 

Contents

Class file image Download
/** * UiContainer.js * * Released under LGPL License. * Copyright (c) 1999-2016 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.themes.inlite.alien.UiContainer', [ 'ephox.katamari.api.Option', 'tinymce.core.Env', 'tinymce.core.dom.DOMUtils' ], function (Option, Env, DOMUtils) { var getUiContainerDelta = function () { var uiContainer = Env.container; if (uiContainer && DOMUtils.DOM.getStyle(uiContainer, 'position', true) !== 'static') { var containerPos = DOMUtils.DOM.getPos(uiContainer); var dx = containerPos.x - uiContainer.scrollLeft; var dy = containerPos.y - uiContainer.scrollTop; return Option.some({ x: dx, y: dy }); } else { return Option.none(); } }; return { getUiContainerDelta: getUiContainerDelta }; } );