You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "D Tim Cummings (Jira)" <ji...@apache.org> on 2022/02/10 03:43:00 UTC

[jira] [Commented] (TAP5-2703) quickstart navbar collapse button doesn't show menu on small windows

    [ https://issues.apache.org/jira/browse/TAP5-2703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17489942#comment-17489942 ] 

D Tim Cummings commented on TAP5-2703:
--------------------------------------

I don't know if it is related but starting quickstart with "mvn jetty:run" gives the following warnings in the log

WARN  pache.tapestry5.modules.JavaScriptModule.CoreJavaScriptStack Could not add object with duplicate id 'tapestry.css'.  The duplicate object has been ignored.
WARN  pache.tapestry5.modules.JavaScriptModule.CoreJavaScriptStack Could not add object with duplicate id 'exception-frame.css'.  The duplicate object has been ignored.
WARN  pache.tapestry5.modules.JavaScriptModule.CoreJavaScriptStack Could not add object with duplicate id 'tapestry-console.css'.  The duplicate object has been ignored.
WARN  pache.tapestry5.modules.JavaScriptModule.CoreJavaScriptStack Could not add object with duplicate id 'tree.css'.  The duplicate object has been ignored.

> quickstart navbar collapse button doesn't show menu on small windows
> --------------------------------------------------------------------
>
>                 Key: TAP5-2703
>                 URL: https://issues.apache.org/jira/browse/TAP5-2703
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: quickstart
>    Affects Versions: 5.8.0
>            Reporter: D Tim Cummings
>            Priority: Minor
>
> I tried out quickstart 5.8.0 and noticed that when the browser window is small it collapses the navbar behind a button. Unfortunately clicking the button doesn't show the navbar. It used to work in old versions of quickstart (eg 5.4.5) which used Bootstrap 3 but quickstart 5.8.0 uses Bootstrap 4.
> Suggested solution:
> Change Layout.java, this line:
> @Import(stylesheet = "context:css/app.css")
> into this:
> @Import(stylesheet = "context:css/app.css",module = \{ "bootstrap/collapse", "bootstrap/dropdown"})
> This seemed to be necessary but didn't solve the problem. More errors in Console about bootstrap/collapse. These may be related to issue:
>  
> DevTools failed to load source map: Could not load content for +http://localhost:8080/assets/meta/zae851f6d/tapestry5/bootstrap4/css/bootstrap.css.map+: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
> DevTools failed to load source map: Could not load content for +http://localhost:8080/assets/meta/z2779b2b3/tapestry5/bootstrap4/css/bootstrap-grid.css.map+: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
> +console.js:104+ RequireJS error: require: Cannot set properties of null (setting '_isTransitioning')
> +console.js:104+ RequireJS error: require: Cannot set properties of null (setting '_element')
> DevTools failed to load source map: Could not load content for +http://localhost:8080/modules.gz/bootstrap/popper.js.map+: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
> DevTools failed to load source map: Could not load content for +http://localhost:8080/modules.gz/bootstrap/dropdown.js.map+: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
> DevTools failed to load source map: Could not load content for +http://localhost:8080/modules.gz/bootstrap/collapse.js.map+: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
> DevTools failed to load source map: Could not load content for +http://localhost:8080/modules.gz/bootstrap/util.js.map+: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE



--
This message was sent by Atlassian Jira
(v8.20.1#820001)