Skip to content

Instantly share code, notes, and snippets.

Avatar

Purushothaman Anbazhagan Purush0th

View GitHub Profile
@Purush0th
Purush0th / jspdf.plugin.text-align.js
Last active Nov 23, 2020
Text alignment for jsPDF 💥
View jspdf.plugin.text-align.js
(function (api, $) {
'use strict';
api.writeText = function (x, y, text, options) {
options = options || {};
var defaults = {
align: 'left',
width: this.internal.pageSize.width
}
@Purush0th
Purush0th / box-sizing-reset-bootstrap3.css
Last active Aug 29, 2015
Fix for Box Sizing resets while using bootstrap in exisitng project. Use class "col" with bootstrap column class to take effect of box-sizing.
View box-sizing-reset-bootstrap3.css
/*#region box-sizing fix*/
*,
*:before,
*:after {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.container-fluid .row .col,