From 1e26cef243a84de3864d38af3e2c864e8807c7fb Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 3 Mar 2014 13:12:21 -0600 Subject: [PATCH] Fix creeping widget sizing on user create --- include/staff/templates/dynamic-form.tmpl.php | 1 + include/staff/templates/user-lookup.tmpl.php | 2 +- scp/css/scp.css | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/staff/templates/dynamic-form.tmpl.php b/include/staff/templates/dynamic-form.tmpl.php index b178b2fff..09d97ab65 100644 --- a/include/staff/templates/dynamic-form.tmpl.php +++ b/include/staff/templates/dynamic-form.tmpl.php @@ -1,3 +1,4 @@ +<tr><td style="width:150px"></td><td></td></tr> <?php if ($form->getTitle()) { ?> <tr><th colspan="2"> <em><strong><?php echo Format::htmlchars($form->getTitle()); ?></strong>: diff --git a/include/staff/templates/user-lookup.tmpl.php b/include/staff/templates/user-lookup.tmpl.php index b6ef1215e..e826e738b 100644 --- a/include/staff/templates/user-lookup.tmpl.php +++ b/include/staff/templates/user-lookup.tmpl.php @@ -47,7 +47,7 @@ if ($info['error']) { </div> <div id="new-user-form" style="display:<?php echo $user ? 'none' :'block'; ?>;"> <form method="post" class="user" action="<?php echo $info['action'] ? $info['action'] : '#users/lookup/form'; ?>"> - <table width="100%"> + <table width="100%" class="fixed"> <?php if(!$form) $form = UserForm::getInstance(); $form->render(true, 'Create New User'); ?> diff --git a/scp/css/scp.css b/scp/css/scp.css index 110f3e8f8..ea1a1ddde 100644 --- a/scp/css/scp.css +++ b/scp/css/scp.css @@ -546,15 +546,15 @@ a.print { border-bottom:1px solid #ddd; } -.form_table.fixed { +table.fixed { table-layout: fixed; border-collapse: collapse; width: 100%; } -.form_table.fixed td { +table.fixed td { width: 180px; } -.form_table.fixed td + td { +table.fixed td + td { width: auto; } -- GitLab