Skip to content

Instantly share code, notes, and snippets.

View btoll's full-sized avatar
💭
derp

btoll

💭
derp
View GitHub Profile
define [
'underscore'
'backbone'
], (_, Backbone) ->
Emitter = {}
aliases =
un: 'off'
emit: 'trigger'
fire: 'trigger'
Ext.define('Overrides.view.Table', {
override: 'Ext.view.Table',
getMaxContentWidth: function(header) {
var me = this,
cells = me.el.query(header.getCellInnerSelector()),
originalWidth = header.getWidth(),
i = 0,
ln = cells.length,
hasPaddingBug = Ext.supports.ScrollWidthInlinePaddingBug,
@btoll
btoll / EXTJSIV-10191
Created June 20, 2013 17:49
Vertafore patch for EXTJSIV-10191
Ext.define('EXTJSIV-10191.grid.header.Container', {
override: 'Ext.grid.header.Container',
initComponent: function() {
var me = this;
me.callParent(arguments);
if (me.isColumn && (!me.items || me.items.length === 0)) {
me.isContainer = false;
@btoll
btoll / EXTJSIV-10055
Created June 20, 2013 17:46
Vertafore patch for EXTJSIV-10055
Ext.define('EXTJSIV-10055.grid.ColumnLayout', {
override: 'Ext.grid.ColumnLayout',
calculate: function(ownerContext) {
this.callSuper(arguments);
// If we have calculated the widths, then if forceFit, and there are no flexes, we cannot tell the
// TableLayout we are done. We will have to go through the convertWidthsToFlexes stage.
if (ownerContext.state.parallelDone) {
// TODO: auto width columns aren't necessarily done here.
@btoll
btoll / css_compress.html
Created July 2, 2011 19:57
CSSCompress: CSS compression tool
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="copyright" content="&copy; copyright 2007-2009, Benjamin Toll" />
<title>CSS Compressor</title>
<style type="text/css">
body {
background: #EED;
text-align: center;
@btoll
btoll / htmlify.html
Created July 2, 2011 19:54
HTMLify: Entify your HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>HTMLify()</title>
<style type="text/css">
body {
background: #EED;
text-align: center;
}