Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UI] Horrible white square #15127

Closed
williamdes opened this issue Mar 29, 2019 · 20 comments
Closed

[UI] Horrible white square #15127

williamdes opened this issue Mar 29, 2019 · 20 comments
Assignees
Labels
Bug A problem or regression with an existing feature good first issue has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete help wanted newbie ui Issues relating to the user interface
Milestone

Comments

@williamdes
Copy link
Member

Describe the bug

image

This occurs for some reason a some time but is very annoying ...
Use designer and navigate between pages

@williamdes williamdes added Bug A problem or regression with an existing feature ui Issues relating to the user interface labels Mar 29, 2019
@williamdes williamdes added this to To Do in Designer Mar 29, 2019
@williamdes
Copy link
Member Author

williamdes commented Mar 29, 2019

/**
 * Makes the breadcrumbs and the menu bar float at the top of the viewport
 */
$(function () {
    if ($('#floating_menubar').length && $('#PMA_disable_floating_menubar').length === 0) {
        var left = $('html').attr('dir') === 'ltr' ? 'left' : 'right';
        $('#floating_menubar')
            .css('margin-' + left, $('#pma_navigation').width() + $('#pma_navigation_resizer').width())

@williamdes
Copy link
Member Author

./js/navigation.js

        $('#floating_menubar, #pma_console')
            .css('margin-' + this.left, (pos + resizer_width) + 'px');

@imdhruvgupta
Copy link
Contributor

Hi @williamdes , I am not able to reproduce this bug. Could you please provide some steps to reproduce?

@williamdes
Copy link
Member Author

@imdhruvgupta unfortunately no, I can not find a reliable way to reproduce this for now
You need to do some browsing and hope to find the issue, or best option: understand the code that generates the margin-left

@williamdes
Copy link
Member Author

williamdes commented Apr 26, 2019

Demo servers (root, no password)

@imdhruvgupta

  • Go to any database, do to designer, then reload the page using F5 and chose reload in the designer left bar
    OR
  • Go to any database, do to designer, then reload the page using F5 and navigate to structure

@msk4862
Copy link

msk4862 commented Aug 9, 2019

@williamdes I'm new here, So, can you please tell me how to test(see) my changes.
Thanks in advance.

@williamdes
Copy link
Member Author

@msk4862 Follow #15127 (comment) to reproduce and make the fix then try to reproduce, if you can not reproduce then you fixed the bug and can create a pull-request.

@msk4862
Copy link

msk4862 commented Aug 11, 2019

@williamdes That much I now, But what I wanted to know was will my fixes be visible on Demo servers ( as mentioned in #15127 (comment) )

or Do I have to setup the phpmyadmin locally on my machine to check if that bug is fixed. (If yes how? because there is no setup instructions availbale)

( I know its a very silly question but I'm a beginner. So, a little help will help me a lot)

@williamdes
Copy link
Member Author

@msk4862 You need to create a local phpmyadmin installation
Follow the steps:

  • Fork the repository (fork button on this page)
  • Clone your fork of the repository
  • Create a new branch from QA_4_9 for your fix
  • Try to fix the issue
  • Commit the changes (use the --signoff option to add your signoff line in the commit body, please use your real name (this option is an agreement to our policy))
  • Create a pull-request to the QA_4_9 branch

@williamdes williamdes added the has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete label Aug 15, 2019
@williamdes williamdes self-assigned this Aug 15, 2019
@williamdes williamdes added this to the 4.9.1 milestone Aug 15, 2019
williamdes added a commit that referenced this issue Aug 15, 2019
[ci skip]
Signed-off-by: William Desportes <williamdes@wdes.fr>
issues automation moved this from Low priority to Closed Aug 15, 2019
@williamdes williamdes moved this from To Do to Done in Designer Aug 20, 2019
@williamdes
Copy link
Member Author

Screenshot_20190821_084457_com android chrome

@williamdes williamdes reopened this Aug 21, 2019
issues automation moved this from Closed to Needs triage Aug 21, 2019
@williamdes
Copy link
Member Author

williamdes commented Aug 21, 2019

The fix introduced this issue, now I understand why this line was here

@rahgurung
Copy link
Contributor

Hmm, Sorry for the mistake, I will send a fix soon.

@rahgurung
Copy link
Contributor

Can you help me replicate this error? I just used my Chrome Device toggle bar and visited home page, it's not there.

@rahgurung
Copy link
Contributor

rahgurung commented Aug 21, 2019

I found it, never mind. :)

@rahgurung
Copy link
Contributor

rahgurung commented Aug 22, 2019

I found a weird thing with floating_menubar when the page is alright and no white square is there it was an empty div element.
Screenshot from 2019-08-22 15-39-20
and after reloading it when that whitespace appears, it was not an empty div element but had child element which were earlier neighbours elements.
Screenshot from 2019-08-22 15-39-40

@rahgurung
Copy link
Contributor

Anyways my PR removes unwanted space from both the cases but we still need to give it a closer look. Actually, I guess the second one is the correct case as floating_menubar should contain serverinfo, topmenucontainer etc as it isn't meant to be empty all the time.
That unwanted space is also coming in this case, thus I am sure that we don't need any margin lefts here.

@williamdes
Copy link
Member Author

williamdes commented Aug 22, 2019

image
image

Okay I will test your PR
Thanks @gurrrung :)

williamdes added a commit to williamdes/phpmyadmintest that referenced this issue Sep 8, 2019
This reverts commit 61ea8b7.

Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes williamdes removed this from the 4.9.1 milestone Sep 8, 2019
@williamdes williamdes moved this from Done to To Do in Designer Sep 8, 2019
@williamdes
Copy link
Member Author

I reverted everything since this is too much of an issue to be kept as is

If you update your fix I will do a lot more testing so it does not happen again
Can you re-do the PR @gurrrung ?

issues automation moved this from Needs triage to Closed Sep 8, 2019
@williamdes williamdes reopened this Sep 8, 2019
issues automation moved this from Closed to Needs triage Sep 8, 2019
@williamdes williamdes moved this from Needs triage to Reproduced in issues Sep 8, 2019
@rahgurung
Copy link
Contributor

Yeah sure. I will do it soon once I get time. In the meantime if someone wants to take this issue, feel free to.

@anksh1997
Copy link
Contributor

anksh1997 commented Oct 6, 2019

Hie @williamdes and @gurrrung, I noticed some strange behaviour too before reloading and after reloading the designer page. Attaching screenshots for more details about what I observed, in first screenshot (body) have padding-top to add some space for (floating-menubar) while (floating-menubar) is position fixed. In second screenshot that is after reloading it empties up the (floating-menubar).

Coming to the point : my approach added padding body and positioning to floating navbar, the issue is solved (further tests needs to be done though) but don't know its correctness

Before Reloading

After reloading

@williamdes williamdes added this to the 4.9.2 milestone Nov 11, 2019
williamdes added a commit that referenced this issue Nov 11, 2019
Pull-request: #15493
Fixes: #15127

Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes added a commit that referenced this issue Nov 11, 2019
Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes added a commit that referenced this issue Nov 11, 2019
Signed-off-by: William Desportes <williamdes@wdes.fr>
issues automation moved this from Reproduced to Closed Nov 11, 2019
@williamdes williamdes moved this from To Do to Done in Designer Nov 11, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature good first issue has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete help wanted newbie ui Issues relating to the user interface
Projects
issues
  
Closed
Development

No branches or pull requests

5 participants