PHP Classes

File: WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/tinymce/ui/AbsoluteLayout.js

Recommend this page to a friend!
  Classes of Jules Warner   WICMS   WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/tinymce/ui/AbsoluteLayout.js   Download  
File: WITheme/WICMS/admin/js/plugins/textEditor/tinymce_4.2.6_dev/tinymce/tests/tinymce/ui/AbsoluteLayout.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 7 years ago
Size: 777 bytes
 

Contents

Class file image Download
(function() { module("tinymce.ui.AbsoluteLayout", { setup: function() { document.getElementById('view').innerHTML = ''; }, teardown: function() { tinymce.dom.Event.clean(document.getElementById('view')); } }); function createPanel(settings) { return tinymce.ui.Factory.create(tinymce.extend({ type: 'panel', layout: 'absolute', width: 200, height: 200 }, settings)).renderTo(document.getElementById('view')).reflow(); } test("spacer x:10, y:20, minWidth: 100, minHeight: 100", function() { var panel = createPanel({ items: [ {type: 'spacer', x: 10, y: 20, w: 100, h: 120, classes: 'red'} ] }); deepEqual(Utils.rect(panel), [0, 0, 200, 200]); deepEqual(Utils.rect(panel.find('spacer')[0]), [10, 20, 100, 120]); }); })();