logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
scott9677  
#1 Posted : Tuesday, March 19, 2019 7:17:40 PM(UTC)
scott9677

Rank: Advanced Member

Groups: Registered
Joined: 5/18/2018(UTC)
Posts: 40

Thanks: 2 times
We are having an issue with the 'scroll to top' arrow where it is covering the totals of the report.

Is there a way to turn that feature off in version 4.1?

epf  
#2 Posted : Wednesday, March 20, 2019 12:26:51 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
Yes weird issue, you cannot resize the window (is it on a mobile) ?

No direct option in 4.1 but you can edit your root view:
Select your root view and edit the custom template:
At the e, just remove the html lines:

Code:
    <!--back to top-->
    <a id="back-to-top" href="#" class="btn btn-warning btn-lg back-to-top" role="button" title="@report.Translate("Back to top")" data-toggle="tooltip" data-placement="top">
        <span>&#916;</span>
    </a>


and you won't see the back to top anymore for this report.

could be an enhancement for next release.
scott9677  
#3 Posted : Wednesday, March 20, 2019 12:54:04 PM(UTC)
scott9677

Rank: Advanced Member

Groups: Registered
Joined: 5/18/2018(UTC)
Posts: 40

Thanks: 2 times
It's not on mobile. If there isn't a page selector element at the bottom of the screen it looks like this:

https://i.imgur.com/umnoKou.png

You can't scroll past it, and the only workaround is to go into the browser and hide the element.
epf  
#4 Posted : Wednesday, March 20, 2019 1:36:26 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
Another better way to hide this is to set the property 'Additional JavaScript' of your main view to

Code:
$(document).ready(function () {
    $("#back-to-top").attr("id","back-to-top2");
});


Yes, I got the issue, we will solve this in the next release (perhaps hide the back top top after a few seconds)

Edited by user Wednesday, March 20, 2019 1:38:39 PM(UTC)  | Reason: Not specified

epf  
#5 Posted : Thursday, March 21, 2019 9:39:02 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
The issue is consider as a bug #125,
it will be solved like this:
Report.cshtml:
Code:
    <!--back to top-->
    <a id="back-to-top" href="#" class="btn btn-warning btn-lg back-to-top" role="button" title="@report.Translate("Back to top")" data-toggle="tooltip" data-placement="top">
        <span>&#916;</span>
        <span id="back-to-top-close" style="top:0px;right:4px;font-size: 14px;position: absolute;">&times;</span>
    </a>

common.js:

Code:
    //back to top
    $(window).scroll(function () {
        if ($(this).scrollTop() > 50) $('#back-to-top').fadeIn();
        else $('#back-to-top').fadeOut();
    });

    $('#back-to-top').click(function () {
        $('#back-to-top').tooltip('hide');
        $('body,html').animate({
            scrollTop: 0
        }, 800);
        return false;
    });

    $('#back-to-top-close').click(function () {
        $('#back-to-top').tooltip('hide');
        $('#back-to-top').fadeOut();
        return false;
    });

    if (!printLayout) $('#back-to-top').tooltip('show');


So you can check the fix if it is ok....

Edited by user Thursday, March 21, 2019 9:40:21 AM(UTC)  | Reason: Not specified

thanks 1 user thanked epf for this useful post.
scott9677 on 3/21/2019(UTC)
scott9677  
#6 Posted : Thursday, March 21, 2019 1:26:55 PM(UTC)
scott9677

Rank: Advanced Member

Groups: Registered
Joined: 5/18/2018(UTC)
Posts: 40

Thanks: 2 times
The patch in #5 worked. It created a way to close out the arrow.

However, I've just commented it out in the report.chtml for now.

Thanks for your assistance as always.

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.