[Embed] Fix Bug 54128

This commit is contained in:
Julia Radzhabova 2021-12-07 20:28:43 +03:00
parent 097f1c7fc1
commit ddf2be862c
9 changed files with 15 additions and 12 deletions

View file

@ -273,7 +273,7 @@
</div> </div>
</div> </div>
<div class="hyperlink-tooltip" data-toggle="tooltip" title="Press Ctrl and click the link" style="display:none;"></div> <div class="hyperlink-tooltip" data-toggle="tooltip" title="Click the link to open it" style="display:none;"></div>
<!--vendor--> <!--vendor-->
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script> <script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>

View file

@ -267,7 +267,7 @@
</div> </div>
</div> </div>
<div class="hyperlink-tooltip" data-toggle="tooltip" title="Press Ctrl and click the link" style="display:none;"></div> <div class="hyperlink-tooltip" data-toggle="tooltip" title="Click the link to open it" style="display:none;"></div>
<!--vendor--> <!--vendor-->
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script> <script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>

View file

@ -321,7 +321,7 @@
</div> </div>
</div> </div>
<div class="hyperlink-tooltip" data-toggle="tooltip" title="Press Ctrl and click the link" style="display:none;"></div> <div class="hyperlink-tooltip" data-toggle="tooltip" title="Click the link to open it" style="display:none;"></div>
<!--vendor--> <!--vendor-->
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script> <script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>

View file

@ -314,7 +314,7 @@
</div> </div>
</div> </div>
<div class="hyperlink-tooltip" data-toggle="tooltip" title="Press Ctrl and click the link" style="display:none;"></div> <div class="hyperlink-tooltip" data-toggle="tooltip" title="Click the link to open it" style="display:none;"></div>
<!--vendor--> <!--vendor-->
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script> <script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>

View file

@ -41,7 +41,7 @@ PE.ApplicationController = new(function(){
maxPages = 0, maxPages = 0,
created = false, created = false,
currentPage = 0, currentPage = 0,
ttOffset = [0, -10], ttOffset = [5, -10],
labelDocName; labelDocName;
var LoadingDocument = -256; var LoadingDocument = -256;
@ -206,10 +206,11 @@ PE.ApplicationController = new(function(){
$ttEl.tooltip({'container':'body', 'trigger':'manual'}); $ttEl.tooltip({'container':'body', 'trigger':'manual'});
$ttEl.on('shown.bs.tooltip', function(e) { $ttEl.on('shown.bs.tooltip', function(e) {
$tooltip = $ttEl.data('bs.tooltip').tip(); $tooltip = $ttEl.data('bs.tooltip').tip();
var pos = $ttEl.ttpos[1] - $tooltip.height() + ttOffset[1];
(pos<0) && (pos = 0);
$tooltip.css({ $tooltip.css({
left: $ttEl.ttpos[0] + ttOffset[0], left: $ttEl.ttpos[0] + ttOffset[0],
top: $ttEl.ttpos[1] + ttOffset[1] top: pos
}); });
$tooltip.find('.tooltip-arrow').css({left: 10}); $tooltip.find('.tooltip-arrow').css({left: 10});
@ -220,9 +221,11 @@ PE.ApplicationController = new(function(){
$ttEl.ttpos = [data.get_X(), data.get_Y()]; $ttEl.ttpos = [data.get_X(), data.get_Y()];
$ttEl.tooltip('show'); $ttEl.tooltip('show');
} else { } else {
var pos = $ttEl.ttpos[1] - $tooltip.height() + ttOffset[1];
(pos<0) && (pos = 0);
$tooltip.css({ $tooltip.css({
left:data.get_X() + ttOffset[0], left:data.get_X() + ttOffset[0],
top:data.get_Y() + ttOffset[1] top:pos
}); });
} }
} }

View file

@ -246,7 +246,7 @@
</div> </div>
</div> </div>
<div class="hyperlink-tooltip" data-toggle="tooltip" title="Press Ctrl and click the link" style="display:none;"></div> <div class="hyperlink-tooltip" data-toggle="tooltip" title="Click the link to open it" style="display:none;"></div>
<!--vendor--> <!--vendor-->
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script> <script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>

View file

@ -238,7 +238,7 @@
</div> </div>
</div> </div>
<div class="hyperlink-tooltip" data-toggle="tooltip" title="Press Ctrl and click the link" style="display:none;"></div> <div class="hyperlink-tooltip" data-toggle="tooltip" title="Click the link to open it" style="display:none;"></div>
<!--vendor--> <!--vendor-->
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script> <script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>

View file

@ -320,7 +320,7 @@
</div> </div>
</div> </div>
<div class="hyperlink-tooltip" data-toggle="tooltip" title="Press Ctrl and click the link" style="display:none;"></div> <div class="hyperlink-tooltip" data-toggle="tooltip" title="Click the link to open it" style="display:none;"></div>
<!--vendor--> <!--vendor-->
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script> <script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>

View file

@ -312,7 +312,7 @@
</div> </div>
</div> </div>
<div class="hyperlink-tooltip" data-toggle="tooltip" title="Press Ctrl and click the link" style="display:none;"></div> <div class="hyperlink-tooltip" data-toggle="tooltip" title="Click the link to open it" style="display:none;"></div>
<!--vendor--> <!--vendor-->
<script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script> <script type="text/javascript" src="../../../vendor/jquery/jquery.min.js"></script>