HabitRPG/habitrpg-shared — pull request #315 by sbreiler (2014-09-17 23:28:20+00:00)
Title: Fix percent function to return minimum zero

The percent function is used for ui-bars. When returning numbers below zero the bar will show up with 100% width, 'cause css don't know negative width.