How to use the select.height function in select

To help you get started, we’ve selected a few select examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AudithSoftworks / Uniform / www / javascripts / themer.js View on Github external
vert += vertChange;
			}

			return vert;
		}

		// Get some values and convert them to numbers
		$('.autoGrab').each(function () {
			var $e = $(this),
				id = $e.attr('id');
			grab[id] = $e.val();
		});

		// First five rows are select spans
		offset = sprites('select', "right", offset, "", -grab.selectHeight, states.bar);
		replacements['select.height'] = px(grab.selectHeight);

		// Next five rows are select divs - the cap on the left side
		offset = sprites('selectCap', 0, offset, 0, -grab.selectHeight, states.bar);

		// 10 checkbox states on a single row
		offset = sprites('checkbox', 0, offset, -grab.checkWidth, 0, states.tile);
		replacements['checkbox.height'] = px(grab.checkHeight);
		replacements['checkbox.width'] = px(grab.checkWidth);
		offset -= grab.checkHeight;

		// 10 radio states on a single row
		offset = sprites('radio', 0, offset, -grab.radioWidth, 0, states.tile);
		replacements['radio.height'] = px(grab.radioHeight);
		replacements['radio.width'] = px(grab.radioWidth);
		offset -= grab.checkHeight;

select

Programmatically select the text of a HTML element

MIT
Latest version published 7 years ago

Package Health Score

67 / 100
Full package analysis