• 10 Posts
  • 75 Comments
Joined 1 年前
cake
Cake day: 2024年12月7日

help-circle


  • I encountered this problem mylsef. The way I solved it was to do a scroll container and then do:

    func _scroll_to_text_edit(text_edit : TextEdit) -> void:
     scroll_container.ensure_control_visible(text_edit)
    

    For the height problem you have to do it inside a _process() so it runs in every frame:

    func _process(_delta: float) -> void:
     if DisplayServer.has_feature(DisplayServer.FEATURE_VIRTUAL_KEYBOARD):
      var keyboard_height = DisplayServer.virtual_keyboard_get_height()
      if keyboard_height > 0:
       self.size.y = get_viewport_rect().size.y - keyboard_height
      else:
       self.size.y = get_viewport_rect().size.y
    

    You can check my lame implementation here: https://github.com/4Robato/track-your-counters/blob/main/UI/main.gd

    It’s been a while and I forgot a bit the details and I can’t take a deeper look now but I hope this helps!










  • Aah I didn’t knew this issue from Lemmy, really interesting. Creating a decentralized platform raises many new challenges that are hard to solve!

    Now I get why piefed approaches moderation in a different manner and tries to be more resource friendly.

    Thanks for the info! Really interesting stuff :)


  • Yeah one has to be careful with statistics and I couldn’t find the whole Lemmy in one place so it’s also not representative of the whole Lemmy.

    I thought ActivityPub did scale well and was ATProto (Bluesky) which had a lot more issues. I mean I can comment on Peertube using my Mastodon account meaning the whole Fediverse is properly connected and we are 1M MAU so I would say it already scaled good.