MDL-41050 Progress bar: Width parameter does not work
This commit is contained in:
committed by
Sam Hemelryk
parent
6ae19630c5
commit
f1cb34a17a
+3
-2
@@ -2934,11 +2934,12 @@ class progress_bar {
|
||||
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;"> <span id="pt_{$this->html_id}"></span>
|
||||
|
||||
Reference in New Issue
Block a user