Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-41050 Progress bar: Width parameter does not work

  • Loading branch information...
commit f1cb34a17aaa39d948420bfee677aa22167eaa16 1 parent 6ae1963
@sammarshallou sammarshallou authored samhemelryk committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/weblib.php
View
5 lib/weblib.php
@@ -2934,11 +2934,12 @@ public function create() {
if (CLI_SCRIPT) {
return; // temporary solution for cli scripts
}
+ $widthplusborder = $this->width + 2;
$htmlcode = <<<EOT
- <div style="text-align:center;width:{$this->width}px;clear:both;padding:0;margin:0 auto;">
+ <div style="text-align:center;width:{$widthplusborder}px;clear:both;padding:0;margin:0 auto;">
<h2 id="status_{$this->html_id}" style="text-align: center;margin:0 auto"></h2>
<p id="time_{$this->html_id}"></p>
- <div id="bar_{$this->html_id}" style="border-style:solid;border-width:1px;width:500px;height:50px;">
+ <div id="bar_{$this->html_id}" style="border-style:solid;border-width:1px;width:{$this->width}px;height:50px;">
<div id="progress_{$this->html_id}"
style="text-align:center;background:#FFCC66;width:4px;border:1px
solid gray;height:38px; padding-top:10px;">&nbsp;<span id="pt_{$this->html_id}"></span>
Please sign in to comment.
Something went wrong with that request. Please try again.