Skip to content

Instantly share code, notes, and snippets.

View ExtAnimal's full-sized avatar

Nige White ExtAnimal

  • Animal Software SAS
  • Lavercantière, 46340, France
View GitHub Profile
@ExtAnimal
ExtAnimal / grid-perf-test.html
Created January 18, 2012 10:06
Ext 3.x Grid performance example
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Stateful Array Grid Example</title>
<!-- ** CSS ** -->
<!-- base library -->
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<!-- ** Javascript ** -->
@ExtAnimal
ExtAnimal / gist:1433122
Created December 5, 2011 10:17
Element.alignTo without arbitrary 5,5 addition to scrollX/Y
getAlignToXY : function(alignToEl, posSpec, offset) {
alignToEl = Ext.get(alignToEl);
if (!alignToEl || !alignToEl.dom) {
//<debug>
Ext.Error.raise({
sourceClass: 'Ext.dom.Element',
sourceMethod: 'getAlignToXY',
msg: 'Attempted to align an element that doesn\'t exist'
});
@ExtAnimal
ExtAnimal / Ext.js
Created October 7, 2011 18:27
platform/core/source/Ext.js Avoiding placing a reference to the Ext namespace as a DOM property on window
getUniqueGlobalNamespace: function() {
var uniqueGlobalNamespace = this.uniqueGlobalNamespace;
if (uniqueGlobalNamespace === undefined) {
var i = 0;
do {
uniqueGlobalNamespace = 'ExtBox' + (++i);
} while (Ext.global[uniqueGlobalNamespace] !== undefined);