p.buildInner = function() { return [ this.buildNameText(), util.makeElement("br"), this.buildUpdateButton() ] };
function Karyotype() { this.profiling = true; this.width = 400; this.trackHeight = 10; // we leave a bit of space at the top, for the thumb to be better visible this.y = 6; // to look ok, this.y should not be smaller than this.thumbSpacer this.thumbSpacer = 6; this.thumbWidth = 5; this.padding = 1; this._initialized = false; this.listenerMap = {}; this.karyos = []; this.scale = 1; this.chrLen = 1; this.start = 0; this.end = 1; this.bands = []; this.thumbEnabled = true; this.realParent = ""; this.parent = ""; this.hPopupHolder = util.makeElement('div'); this.hPopupHolder.style['font-family'] = 'helvetica'; this.hPopupHolder.style['font-size'] = '12pt'; this.resetSVG(); var that = this; function onResize() { $(parent).css('overflow', 'hidden'); $(parent).css('width', 'auto'); $(that.realParent).css('overflow', 'hidden'); $(that.realParent).css('width', 'auto'); that.updateScale(); that.redraw(); } var resizeTimer = false; $(window).resize(function () { if ( resizeTimer ) { clearTimeout(resizeTimer); } resizeTimer = setTimeout(onResize, 300); }); }