Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] Newline in RageNativeUI Menu

Featured Replies

Didn't know if i should open a new thread, but i might aswell.
I might as well tag @alexguirre in it from the start :p

In the Description of an UIMenuItem, if you use a newline (~n~), is there a way to increase the size of the background? Now the text goes outside the menu background, don't know if this is intended or not.

Edited by khorio

RAGENativeUI calculates the size necessary for the description box, I'm not too familiar with that code and probably '~n~' is messing it up.

From a look at it, it seems that it gets the total words count, then loop through them and measure them and when it's needed inserts '\n'(new line). I don't think you could add new line, though you could try using System.Environment.NewLine or '\n' and see what happens.
Can't you make the description with only one line? Also you could try to set UIMenu.FormatDescriptions to false and add the new lines yourself.

  • Author

using \n by itself messes up all the automatic linebreaks, turning off FormatDescriptions together with manual \n newlines works like a charm :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.