NPM Resource Changed ? ? ? Pending

User tests: Successful: Unsuccessful:

avatar Subhang23
Subhang23
17 Feb 2020

Pull Request for Issue #26543 and #27957 .

Summary of Changes

Added class to the div so that on loading it stays in either collapsed form or not-collapsed form(previously it was in a state of mix).
Added querySelectors to ensure that whenever screen size is that of desktop the classes of toolbar stays the same.

Testing Instructions

Go to any page which has a toolbar and reduce the width of the screen to a mobile size.

Expected result

You can open or close the toolbar with a single click and on resizing and closing the toolbar and again resizing the toolbar is intact.

Actual result

With the initial state as pulled up only one click is required. Even on removing toolbar in mobile-view and resizing the toolbar is seen

Documentation Changes Required

avatar Subhang23 Subhang23 - open - 17 Feb 2020
avatar Subhang23 Subhang23 - change - 17 Feb 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Feb 2020
Category Administration Templates (admin)
avatar Subhang23
Subhang23 - comment - 17 Feb 2020

Screenshot from 2020-02-17 11-39-17

avatar SharkyKZ
SharkyKZ - comment - 17 Feb 2020

Now the toolbar is missing on large screens.

avatar Subhang23 Subhang23 - change - 17 Feb 2020
Labels Added: ?
avatar Subhang23
Subhang23 - comment - 17 Feb 2020

I understood the error it was because if the toolbar is compacted in mobile-view it is hidden in desktop-view. This might also be the reason for Issue #27957 .

avatar Subhang23 Subhang23 - change - 17 Feb 2020
Title
fix error of twice clicking on toolbar
[4.0]fix error of twice clicking on toolbar
avatar Subhang23 Subhang23 - edited - 17 Feb 2020
avatar infograf768
infograf768 - comment - 17 Feb 2020

Looks like working.
Now the toolbar is showing on desktop
Note: If the screen is reduced, the toolbar closed and then the screen enlarged to desktop, it requires a reload to get the toolbar again.
Issue or not?

avatar SharkyKZ
SharkyKZ - comment - 17 Feb 2020

That's the issue reported in #27957.

avatar Subhang23
Subhang23 - comment - 17 Feb 2020

That's the issue reported in #27957.

I am currently working on it.

avatar Subhang23
Subhang23 - comment - 17 Feb 2020

Looks like working.
Now the toolbar is showing on desktop
Note: If the screen is reduced, the toolbar closed and then the screen enlarged to desktop, it requires a reload to get the toolbar again.
Issue or not?

Is this fine?

avatar infograf768
infograf768 - comment - 17 Feb 2020

Is this fine?

When #27957 is solved, yes.

avatar Subhang23
Subhang23 - comment - 17 Feb 2020

So should I close this PR and open a PR that solves this issue and Issue #27957 together. I thought they can be solved separately, so I thought of opening 2 separate PR's.
What should I do @infograf768 ?

avatar infograf768
infograf768 - comment - 17 Feb 2020

I am not the one to decide.
If you can solve it together here or in a new PR, it is easier on testers.

avatar joomla-cms-bot joomla-cms-bot - change - 17 Feb 2020
Category Administration Templates (admin) Administration Templates (admin) JavaScript Repository NPM Change
avatar Subhang23
Subhang23 - comment - 17 Feb 2020

@infograf768 I have fixed both the issues with this PR. Please review it.

avatar brianteeman
brianteeman - comment - 17 Feb 2020

Looks good to me

avatar Subhang23 Subhang23 - change - 17 Feb 2020
Title
[4.0]fix error of twice clicking on toolbar
[4.0]fix error of twice clicking on toolbar and its disappearance on resizing
avatar Subhang23 Subhang23 - edited - 17 Feb 2020
avatar Subhang23 Subhang23 - change - 17 Feb 2020
The description was changed
avatar Subhang23 Subhang23 - edited - 17 Feb 2020
avatar Subhang23 Subhang23 - change - 17 Feb 2020
Labels Added: NPM Resource Changed
avatar infograf768
infograf768 - comment - 18 Feb 2020

I have tested this item successfully on a02351f

Great!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27958.

avatar infograf768 infograf768 - test_item - 18 Feb 2020 - Tested successfully
avatar Subhang23
Subhang23 - comment - 18 Feb 2020

@C-Lodder I have made the required changes.

avatar C-Lodder
C-Lodder - comment - 19 Feb 2020

So right now, every time you change the viewport size by 1px, you're going to be searching to DOM 5 times. Not very good for performance.

avatar C-Lodder
C-Lodder - comment - 19 Feb 2020

@Subhang23 targetting DOM elements should go outside of the resize event listener.

avatar Subhang23
Subhang23 - comment - 3 Apr 2020

@wilsonge please review it

avatar wilsonge
wilsonge - comment - 4 Apr 2020

This doesn't work for me. First of all it totally fails on cpanel (see comment above).

When the menu is open and i leave mobile menu it stays open. However when the mobile menu is hidden it doesn't reappear at all. See screenshot - there's no way to reopen the menu at all
Screenshot 2020-04-04 at 17 49 57

avatar alikon
alikon - comment - 4 Apr 2020

same from my test

avatar Subhang23
Subhang23 - comment - 4 Apr 2020

I am not sure if this is the right place to ask but I have run into a problem while setting up Joomla on my local server
Screenshot from 2020-04-05 01-50-32
I am running it on Ubuntu 19.04 php7.3

avatar wilsonge
wilsonge - comment - 8 Apr 2020

not sure what's going on there :( looks very sad. are you sure Joomla is even loading and it's not something from the web server. all our messages should have more info than that

avatar particthistle particthistle - test_item - 28 Jun 2020 - Tested unsuccessfully
avatar particthistle
particthistle - comment - 28 Jun 2020

I have tested this item ? unsuccessfully on 32c00cb

Patch was unable to be applied. Receiving:

Error
The patch could not be applied because the repository is missing

@Subhang23 if you're still having issues with your local installation, read https://magazine.joomla.org/all-issues/june-2020/github-installing-git which might reveal something you've done wrong with your local installation, though this article outlines XAMPP not Ubuntu specifically.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27958.

avatar Quy
Quy - comment - 17 Jul 2020

Please test PR #30131

avatar Quy Quy - change - 17 Jul 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-07-17 21:40:16
Closed_By Quy
Labels Added: ? ?
avatar Quy Quy - close - 17 Jul 2020

Add a Comment

Login with GitHub to post a comment