From 0ef559562e8ff2dda5c122d1b24d6cbdea0ab644 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 27 Apr 2014 16:22:03 +0300 Subject: [PATCH] Bug fixes --- app/views/public/about_us.blade.php | 6 +++--- public/js/script.js | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/public/about_us.blade.php b/app/views/public/about_us.blade.php index 832ad1b8f8b9..90dd4a6b2740 100644 --- a/app/views/public/about_us.blade.php +++ b/app/views/public/about_us.blade.php @@ -67,7 +67,7 @@

Designer

Razi is a pixel nerd with a great deal of experience in design for web sites and applications. When she isn't busy with InvoiceNinja she runs a small web agency in Stockholm called kantorp-wegl.in

- +

kantorp-wegl.in

@@ -79,8 +79,8 @@

A veteran digital marketer and content strategist, Ben specializes in building communities around brands that make business easier for freelancers, SMBs and micro-entrepreneurs.

- - + +

actionpackedmedia.com

diff --git a/public/js/script.js b/public/js/script.js index acd97504249d..b6c53cccb33a 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -1263,8 +1263,10 @@ function displayAccount(doc, invoice, x, y, layout) { account.country ? account.country.name : false ]; - var width = doc.getStringUnitWidth(account.name) * doc.internal.getFontSize() * 1.1; - width = Math.max(120, width); + var nameWidth = doc.getStringUnitWidth(account.name) * doc.internal.getFontSize() * 1.1; + var emailWidth = doc.getStringUnitWidth(account.work_email) * doc.internal.getFontSize() * 1.1; + width = Math.max(emailWidth, nameWidth, 120); + x += width; displayGrid(doc, invoice, data, x, y, layout);