8000 Merge branch '2.6' into 2.7 · ostrolucky/symfony@33f0164 · GitHub
[go: up one dir, main page]

Skip to content

Commit 33f0164

Browse files
committed
Merge branch '2.6' into 2.7
* 2.6: (46 commits) fixxed order of usage [2.7] [Form] Replaced calls to array_search() by in_array() where is no need to get the index [Process] Make test AbstractProcessTest::testStartAfterATimeout useful again removed non-sense example Fixes small typo. [Validator] Remove unnecessary include in tests [HttpFoundation] minor: clarify Request::getUrlencodedPrefix() regex fixed typo [Validator] fix DOS-style line endings Drop useless execution bit bumped Symfony version to 2.6.5 [Serializer] update changelog updated VERSION for 2.6.4 updated CHANGELOG for 2.6.4 bumped Symfony version to 2.5.11 [HttpKernel] Added use of provided by symfony#12022 method to instantiate controller class in bundle's controller resolver updated VERSION for 2.5.10 updated CHANGELOG for 2.5.10 [Validator] Add a Russian translation for invalid charset message [2.3] [Validator] spanish translation for invalid charset message ... Conflicts: src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php src/Symfony/Component/HttpKernel/Exception/FatalErrorException.php src/Symfony/Component/HttpKernel/Exception/FlattenException.php src/Symfony/Component/HttpKernel/Kernel.php src/Symfony/Component/Routing/Tests/Generator/UrlGeneratorTest.php src/Symfony/Component/Validator/Resources/translations/validators.de.xlf src/Symfony/Component/Validator/Resources/translations/validators.en.xlf src/Symfony/Component/Validator/Resources/translations/validators.es.xlf src/Symfony/Component/Validator/Resources/translations/validators.fr.xlf src/Symfony/Component/Validator/Resources/translations/validators.pl.xlf src/Symfony/Component/Validator/Resources/translations/validators.ru.xlf src/Symfony/Component/Validator/Resources/translations/validators.sl.xlf
2 parents d841e66 + a72f42a commit 33f0164

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

Resources/views/Profiler/toolbar.css.twig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
background-color: #f7f7f7;
3131
left: 0;
3232
right: 0;
33-
height: 38px;
3433
margin: 0;
3534
padding: 0 40px 0 0;
3635
z-index: 6000000;
@@ -88,6 +87,7 @@
8887
color: #2f2f2f;
8988
display: block;
9089
min-height: 28px;
90+
border-bottom: 1px solid #e4e4e4;
9191
border-right: 1px solid #e4e4e4;
9292
padding: 0;
9393
float: left;
@@ -150,10 +150,6 @@
150150
border-radius: 4px 4px 0 0;
151151
}
152152

153-
.sf-toolbarreset > div:last-of-type .sf-toolbar-info {
154-
right: -1px;
155-
}
156-
157153
.sf-toolbar-block .sf-toolbar-info:empty {
158154
visibility: hidden;
159155
}

Resources/views/Profiler/toolbar_js.html.twig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,30 @@
3131
}
3232
3333
Sfjs.renderAjaxRequests();
34+
35+
/* Handle toolbar-info position */
36+
var toolbarBlocks = document.getElementsByClassName('sf-toolbar-block');
37+
for (var i = 0; i < toolbarBlocks.length; i += 1) {
38+
toolbarBlocks[i].onmouseover = function () {
39+
var toolbarInfo = this.getElementsByClassName('sf-toolbar-info')[0];
40+
var pageWidth = document.body.clientWidth;
41+
var elementWidth = toolbarInfo.offsetWidth;
42+
var leftValue = (elementWidth + this.offsetLeft) - pageWidth;
43+
var rightValue = (elementWidth + (pageWidth - this.offsetLeft)) - pageWidth;
44+
45+
/* Reset right and left value, useful on window resize */
46+
toolbarInfo.style.right = '';
47+
toolbarInfo.style.left = '';
48+
49+
if (leftValue > 0 && rightValue > 0) {
50+
toolbarInfo.style.right = (rightValue * -1) + 'px';
51+
} else if (leftValue < 0) {
52+
toolbarInfo.style.left = 0;
53+
} else {
54+
toolbarInfo.style.right = '-1px';
55+
}
56+
};
57+
}
3458
},
3559
function(xhr) {
3660
if (xhr.status !== 0) {

0 commit comments

Comments
 (0)
0