https://linen.dev logo
Join Discord
Powered by
# ceramic
  • b

    billowy-waiter-28954

    02/26/2023, 8:22 AM
    settings.fullscreen = true ?
  • g

    gifted-whale-78169

    02/26/2023, 2:38 PM
    when resizable is off it doesnt work
  • b

    billowy-waiter-28954

    02/26/2023, 2:50 PM
    On which target are you experiencing this behavior?
  • g

    gifted-whale-78169

    02/26/2023, 2:57 PM
    web
  • g

    gifted-whale-78169

    02/26/2023, 2:58 PM
    i dont know if it effects anything but im setting
    app.settings.fullscreen = true
    when someone toggles a checkbox
  • g

    gifted-whale-78169

    02/26/2023, 2:58 PM
    not at the beginning of the program
  • b

    billowy-waiter-28954

    02/26/2023, 2:58 PM
    And do you test that via the electron provided by Ceramic, or directly in the browser?
  • g

    gifted-whale-78169

    02/26/2023, 3:00 PM
    via electron
  • b

    billowy-waiter-28954

    02/26/2023, 3:01 PM
    And if the window is resizable, it work right?
  • g

    gifted-whale-78169

    02/26/2023, 3:01 PM
    yes it does
  • b

    billowy-waiter-28954

    02/26/2023, 3:03 PM
    Alright, you can try someting
  • b

    billowy-waiter-28954

    02/26/2023, 3:03 PM
    Find you ceramic installation
  • b

    billowy-waiter-28954

    02/26/2023, 3:03 PM
    and open
    ceramic/runner/app.js
  • b

    billowy-waiter-28954

    02/26/2023, 3:03 PM
    Line 237
  • b

    billowy-waiter-28954

    02/26/2023, 3:04 PM
    Try to replace the
    exports.setFullscreen = ...
    with this:
  • b

    billowy-waiter-28954

    02/26/2023, 3:05 PM
    Copy code
    js
    exports.setFullscreen = function(fullscreen) {
        mainWindow.setFullScreenable(mainWindow.resizable || fullscreen);
        mainWindow.setFullScreen(fullscreen);
    };
  • b

    billowy-waiter-28954

    02/26/2023, 3:06 PM
    Then try to run again your Ceramic app and see if that solves the issue
  • b

    billowy-waiter-28954

    02/26/2023, 3:06 PM
    (you can find where is ceramic with
    ceramic path
    command)
  • g

    gifted-whale-78169

    02/26/2023, 3:08 PM
    ok it fixes it, but disabling fullscreen still doesnt work
  • b

    billowy-waiter-28954

    02/26/2023, 3:08 PM
    Ah ah alright, then let's try this:
  • b

    billowy-waiter-28954

    02/26/2023, 3:09 PM
    Copy code
    js
    exports.setFullscreen = function(fullscreen) {
        if (fullscreen) {
            mainWindow.setFullScreenable(true);
            mainWindow.setFullScreen(true);
        }
        else {
            mainWindow.setFullScreen(false);
            mainWindow.setFullScreenable(mainWindow.resizable);
        }
    };
  • g

    gifted-whale-78169

    02/26/2023, 3:12 PM
    perfect fix :)
  • b

    billowy-waiter-28954

    02/26/2023, 3:13 PM
    I'll include that fix in the next release then! Too bad I just released one version just before fixing that 😆. But no worries another release will follow soon
  • g

    gifted-whale-78169

    02/26/2023, 3:14 PM
    haha alrigjt
  • g

    gifted-whale-78169

    02/26/2023, 3:14 PM
    want me to make a pr?
  • b

    billowy-waiter-28954

    02/26/2023, 3:14 PM
    Nah not needed I already made the same change on my side
  • g

    gifted-whale-78169

    02/26/2023, 3:14 PM
    oh ok sweet
  • a

    astonishing-jordan-99718

    02/26/2023, 3:16 PM
    @User
  • e

    early-oil-11497

    02/26/2023, 3:17 PM
    🎉
  • b

    billowy-waiter-28954

    02/26/2023, 3:40 PM
    In other news, Ceramic is now able to load tilemap objects from LDtk projects:
1...767778...124Latest